#TheKents
1 messages · Page 1 of 1 (latest)
How are you collecting the shipping data today? We have an Address Element that can assist with that, and automatically passes the fields to the payment: https://stripe.com/docs/elements/address-element
Yes, im using the address element
this was the thing i was wondering about, and how to display the shipping data in react
You don't need to pass the shipping parameter, that will be overriding the fields from Address Element (its done automatically)
hmm, okay
You can get the fields/values using events: https://stripe.com/docs/elements/address-element/collect-addresses?platform=web#web-retrieve-address
but still it would be saved to a higher state and not local useState
probably the address element doesnt pass them to return_url right?
Not sure what you mean
No, they're just set on the shipping field on the Payment Intent: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-shipping
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.