#rhy0295
1 messages · Page 1 of 1 (latest)
so let's say I want to build a checkout form like this, I am using <AddressElement> which automaticaly collects certain fields like first name, last name, country, and address; is what you're saying I have to create a custom form outside of Stripe Elements to collect other custom fields?
this is what I get with address element
Correct, you need to create a custom form outside of Stripe Elements to collect custom fields.
can I edit the appearance of Stripe's AddressElement to match that of the example I sent?
If so where can I find more on doing that? At the moment I only see Elements Apperance API on the docs which only allows changes for theme, variables, and rules
Appearence API has all the settings, I'm afraid you can't rearrange the fields.
so does it mean in this example here, they didn't use StripeElements to build it?
Then alternatively can I build my own custom form outside of Stripe, and then feed this data back into Stripe Elements when making a shipping payment?
No, it doesn't seem so.
Is that no to both questions?
Yes, you can use your own address form. You can then add the data when calling confirmPayment: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-shipping
I understand, thanks
Happy to help.