#dawidzawada-PaymentElement-customer-info

1 messages ยท Page 1 of 1 (latest)

atomic tinsel
#

Hello ๐Ÿ‘‹
Give me a moment to catch up here ๐Ÿ™‚ thanks

oak quartz
#

Sure, take ur time!

atomic tinsel
#

PaymentElement is autonomous in terms of collecting the billing details
So the idea is that either you set it to auto where it collects the information when needed or you completely disable it by setting it to never so that you can collect the billing info using a custom form of your own

oak quartz
#

Do I need to set them on payment element or i just can provide bellingDetails to confirmSetup function like this:
const {error} = await stripe.confirmSetup({
//Elements instance that was used to create the Payment Element
elements,
redirect: 'if_required'
confirmParams: {payment_method_data: {billing_details: <HERE>}}
});

atomic tinsel
#

I believe you can do either but I haven't personally tested it so I'd recommend checking in test mode just to make sure

oak quartz
#

Allright, thats for your help! Have a nice day!