#Ender1776 [syndicate]

1 messages ยท Page 1 of 1 (latest)

keen nexusBOT
finite crystal
#

for shipping address

last aspen
#

Thanks for letting us know. Can you point to the docs on the method you're referring to?

finite crystal
#

sure, one sec

last aspen
#

Also some code to reproduce would be helpful

finite crystal
#

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

grave ivy
#

๐Ÿ‘‹ hey again

finite crystal
#

hey bis

grave ivy
#

Can you share a PaymentIntent?

finite crystal
#

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

grave ivy
finite crystal
#

ok, lol, will check that out, thanks

#

at least you guys have workarounds for all this stuff lol

grave ivy
#

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

finite crystal
#

i'll have to check that with google too, maybe its saving to the PI (since its not returning anything)

grave ivy
#

Not sure I understand what you mean by that exactly?

finite crystal
#

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

grave ivy
#

Oh I see

#

You are just literally logging out the response from the promise resolving, yeah?

finite crystal
#

yeah the paymentIntent response

#

from confirmPP

grave ivy
#

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

finite crystal
#

will check server side, if thats the case, that will solve the issues for now

grave ivy
#

If you have a Google Pay PI I can check for you real quick

finite crystal
#

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

grave ivy
#

๐Ÿ‘