Closed tgensol closed 2 years ago
A contact object that represents the new shipping address. To maintain privacy, the shipping information is anonymized. For example, in the United States it only includes the city, state, and zip code. This provides enough information to calculate shipping costs, without revealing sensitive information until the user actually approves the purchase.
I will reopen it, because I still do not find how to get the FULL shippingContact
once the user validated the payment :
const { error, paymentMethod } = await presentApplePay({})
, why the shippingContact
is not in the paymentMethod
? We have the billing
Thank you
After digging :
await retrievePaymentIntent(client_secret);
, and you will be able to get the shipping addressstripe.paymentIntents.retrieve("")
to get the shippingHi @tgensol, I am facing the same issue right now. How does the data end up into the payment intent if we can't access the shipping address when we create it ?
Describe the bug
Hi there,
I am trying to use Apple Pay and the
onShippingContactSelected
callback, but I always getting a weir shippingContact :Excepting postalCode, or the countryCode, everything else is an empty string... Even if I am trying to ask for any fields in the
requiredShippingAddressFields
or/andrequiredBillingContactFields
.It is happening on a real device or on a simulator. What am I missing ?
To Reproduce Steps to reproduce the behavior: Use Apple Pay and check the shippingContact you will get
Expected behavior
I wanted all the fields to be non empty