#EdElric - Billing Address

1 messages · Page 1 of 1 (latest)

late edge
#

Hello, I'd be happy to help! Can you explain what you mean by "mount address fields to the payment element"?

normal fox
#

So we are using Stripe JS on the front end to setup an Intent and confirm card setup. Stripe JS provides a payment-element which provides the Credit Card Number, Expiry Date and CVC UI inbuilt. Im trying to add billing address to the same element.

late edge
#

Note there's no way to force collection of any specific billing details field. You can set them to auto, but if you want to force collection of something in particular you should disable it in the Payment Element with never and collect it in your own form field instead.

normal fox
#

Yup, tried that some like

                fields: {
                    billingDetails: 'auto'
                }
            });
#

Gotcha, and then just pass it to Stripe when I confirmCardSetup?

late edge