#lumen-elements
1 messages · Page 1 of 1 (latest)
hi! if you use Checkout it would collect all those.
For PaymentElement you have to build your own HTML inputs outside the PaymentElement itself
Oh, I see, thanks!
Yeah, I'm using PaymentElement, not Checkout.
How should I save this data to stripe?
for billing address/name you would pass what you have from your inputs to https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details when confirming the PaymentIntent from the "pay now" button
for VAT IDs, it's a bit more complicated as you need to get the value onto your backend server and call https://stripe.com/docs/billing/customer/tax-ids#using-api to update the related Customer ID
Thank you very much, this is perfect!