#porkier - address collection
1 messages ยท Page 1 of 1 (latest)
Currently no this is not supported. While the payment element does generally collect billing addresses when the payment method requires it, this is not something you can opt in to for card payments.
But we've heard this feedback and are looking to see if we can enable it in the future ๐
Thanks for the reply! So I wouldn't be able to collect the users address separately (custom form) and save it within stripe?
You can do that, yes!
You can provide those in the optional payment_method[billing_details when you confirm the card payment:
https://stripe.com/docs/js/payment_intents/confirm_card_payment
Complete reference documentation for the Stripe JavaScript SDK.
see the example snippet there:
stripe
.confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}', {
payment_method: {
card: cardElement,
billing_details: {
name: 'Jenny Rosen', // this
},
},
})
you can add an address hash there
Oh that's good to know!
Thanks for your help!! I'm just figuring out options now, but I may have more questions in the future! I really appreciate your help!
My pleasure ๐