#Ender1776 [syndicate]
1 messages ยท Page 1 of 1 (latest)
for shipping address
Thanks for letting us know. Can you point to the docs on the method you're referring to?
sure, one sec
Also some code to reproduce would be helpful
Documentation for @stripe/stripe-react-native
that is the method, these are the params being passed to it:
applePay: {
cartItems: [
{
label: 'Subscription',
amount: subscriptionData.total, // subResponse.totalPrice,
paymentType: PlatformPay.PaymentType.Immediate,
}
],
merchantCountryCode: 'US',
currencyCode: 'USD',
requiredShippingAddressFields: [
PlatformPay.ContactField.PostalAddress,
PlatformPay.ContactField.Name,
PlatformPay.ContactField.EmailAddress
],
requiredBillingContactFields: [
PlatformPay.ContactField.PostalAddress,
PlatformPay.ContactField.Name
]
}
it also doen't work at all for google pay (returning shipping address), but I think thats a known issue
๐ hey again
hey bis
Can you share a PaymentIntent?
sure
Intent and other IDs:
subResponse {"clientSecret": "pi_3N0qSQEw8dry0on101S5X9iB_secret_ygxBlOGQTxtKWrvWn18yDhZuF", "invoiceId": "in_1N0qSQEw8dry0on1rFHmfVJg", "subscriptionId": "sub_1N0qSQEw8dry0on1NWBqeooH", "totalPrice": 4708}
platformpay response {
"created": "1682446758000",
"confirmationMethod": "Automatic",
"amount": 4708,
"clientSecret": "pi_3N0qSQEw8dry0on101S5X9iB_secret_ygxBlOGQTxtKWrvWn18yDhZuF",
"receiptEmail": null,
"shipping": {
"phone": null,
"carrier": null,
"trackingNumber": null,
"address": {
"city": "city",
"postalCode": "12345",
"line1": "9613 mercy Ct",
"line2": null,
"country": "US"
},
"name": "Adam Uber"
},
"livemode": false,
"lastPaymentError": null,
"currency": "usd",
"captureMethod": "Automatic",
"paymentMethodId": "pm_1N0qSbEw8dry0on1NB23geK0",
"canceledAt": null,
"id": "pi_3N0qSQEw8dry0on101S5X9iB",
"nextAction": null,
"paymentMethod": null,
"status": "Succeeded",
top is the PI, bottom part is the direct response from confirmPP
Hmm yeah okay that seems like a bug in the SDK. The state is there though if you retrieve it server-side. Try retrieving that PI using: https://stripe.com/docs/api/payment_intents/retrieve
ok, lol, will check that out, thanks
at least you guys have workarounds for all this stuff lol
Yeah... blah sorry know not a great experience
Will add this to my report from yesterday
Also just a heads up this is a public server so you may want to redact some of the above info if any of it is real/sensitive to you
i'll have to check that with google too, maybe its saving to the PI (since its not returning anything)
Not sure I understand what you mean by that exactly?
well, if you use google pay on confirmPP and ask for shipping, the confirmPP response includes no user data, where apply pay response will have the email and partial address
Oh I see
You are just literally logging out the response from the promise resolving, yeah?
Yeah okay. I still need to spin up my own repro. I do bet all the data is there if you retrieve it server-side but I'll need to see if we just aren't handling it correctly when responding on the client here
will check server side, if thats the case, that will solve the issues for now
If you have a Google Pay PI I can check for you real quick
ok, cool, yeah, shipping is there for Apple Pay on the intent, with state, will test google in a bit, need to code this up and then have to switch emulators. thanks
๐