@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.1.26",
|
"version": "0.1.27",
|
||||||
"description": "Javascript library to display typebots on your website",
|
"description": "Javascript library to display typebots on your website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ export const StripePaymentForm = (props: Props) => {
|
|||||||
sessionId: props.context.sessionId,
|
sessionId: props.context.sessionId,
|
||||||
typebot: props.context.typebot,
|
typebot: props.context.typebot,
|
||||||
})
|
})
|
||||||
|
const { postalCode, ...address } =
|
||||||
|
props.options.additionalInformation?.address ?? {}
|
||||||
const { error, paymentIntent } = await stripe.confirmPayment({
|
const { error, paymentIntent } = await stripe.confirmPayment({
|
||||||
elements,
|
elements,
|
||||||
confirmParams: {
|
confirmParams: {
|
||||||
@@ -69,9 +71,8 @@ export const StripePaymentForm = (props: Props) => {
|
|||||||
email: props.options.additionalInformation?.email,
|
email: props.options.additionalInformation?.email,
|
||||||
phone: props.options.additionalInformation?.phoneNumber,
|
phone: props.options.additionalInformation?.phoneNumber,
|
||||||
address: {
|
address: {
|
||||||
...props.options.additionalInformation?.address,
|
...address,
|
||||||
postal_code:
|
postal_code: postalCode,
|
||||||
props.options.additionalInformation?.address?.postalCode,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.1.26",
|
"version": "0.1.27",
|
||||||
"description": "Convenient library to display typebots on your Next.js website",
|
"description": "Convenient library to display typebots on your Next.js website",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/react",
|
"name": "@typebot.io/react",
|
||||||
"version": "0.1.26",
|
"version": "0.1.27",
|
||||||
"description": "Convenient library to display typebots on your React app",
|
"description": "Convenient library to display typebots on your React app",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user