#gosborn

1 messages · Page 1 of 1 (latest)

finite sinewBOT
lusty minnow
#

here's my prototype code:

sonic kelp
#

Good question, looking in to how to do this and will get back to you

lusty minnow
#

const {error: presentError} = await confirmPlatformPaySetupIntent(client_secret, {applePay: {
merchantCountryCode: 'GB',
currencyCode: 'GBP',
requiredBillingContactFields: ['name', 'emailAddress', 'postalAddress'],
cartItems: [{
label: 'test',
amount: '9.00',
paymentType: PlatformPay.PaymentType.Immediate,
}],
}});

#

Thank you @sonic kelp!

#

So the above produces this, so long as 'postalAddress' is in 'requiredBillingContactFields'

#

But with only name and emailAddress - there's no input for those fields

#

If I add requiredShippingAddressFields: ['name'], then we see a name field, but we need to use 'billing' instead of 'shipping'

sonic kelp
#

Thanks for the code and screenshots. Still looking in to this, my impression is that you could require those by themselves

#

Have you tapped all the way through the sheet's flow here? Is it possible that those would have been required on another page of the sheet?

lusty minnow
#

The next action 'Pay with Passcode' closes the sheet, so I don't think so

sonic kelp
#

Gotcha, thank you for checking

lusty minnow
#

Also, the next step (for me) would be to make sure that the 'name' or 'email' (or 'postalAddress') is sent to Stripe in some way - I also don't know about that

sonic kelp
#

I am going to reach out to my colleague who is more familiar with this library

lusty minnow
#

Great - thank you so much for your help!

sonic kelp
#

Of course, just passed the question along. And to be clear, there weren't name and email fields in when you clicked on "Add billing address" in that first screenshot?

lusty minnow
#

Email isn't present at all - and ideally, we don't want to ask for the user's postal address

sonic kelp
#

Ah gothca, so just email and name if possible?

lusty minnow
#

Actually, just name if possible!

sonic kelp
#

Also have you checked the data that comes back after the sheet has completed on a real device? It may be that that param pulls the email associated with the user's Apple ID?

lusty minnow
#

Haven't tried on a real device yet: the response looks like this {"clientSecret": "seti_1MUuvbH7jib4x1GyvnROCL6S_secret_NFPlEaSl4c9tvEC4O4WdF4TqE0IYJNd", "created": "1674837447000", "description": null, "id": "seti_1MUuvbH7jib4x1GyvnROCL6S", "lastSetupError": null, "livemode": false, "nextAction": null, "paymentMethod": null, "paymentMethodId": "pm_1MUuvfH7jib4x1GyoVgpfqKL", "paymentMethodTypes": ["Card"], "status": "Succeeded", "usage": "OffSession"}

#

Not sure why PaymentMethod is null here - that does have billing information - and maybe I'd find the info there?

sonic kelp
#

Thanks for testing, my colleague is taking a deeper look at this but it might take a bit. Would you be able to write in a quick ticket to our support team and then DM me your email? I can pass it right on to my colleague to get back to you with what they can find. https://support.stripe.com/?contact=true

#

Your description of the issue doesn't need to be much. Can just be your first message and mentioning that you spoke to Pompey, I can grab it and fill in the rest of what you sent here

lusty minnow
#

Sure! I can do so in a few minutes - thanks again!

sonic kelp
#

@lusty minnow Have you sent the email in yet? No rush, just making sure I can grab it whenever you send it in

lusty minnow
#

I accidentally closed my window somehow, so rewriting it now 😭

sonic kelp
#

Got email and grabbed it. Closing thread for now, we will reach out through that email