#gosborn
1 messages · Page 1 of 1 (latest)
here's my prototype code:
Good question, looking in to how to do this and will get back to you
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'
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?
The next action 'Pay with Passcode' closes the sheet, so I don't think so
Gotcha, thank you for checking
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
I am going to reach out to my colleague who is more familiar with this library
Great - thank you so much for your help!
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?
Email isn't present at all - and ideally, we don't want to ask for the user's postal address
Ah gothca, so just email and name if possible?
Actually, just name if possible!
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?
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?
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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
Sure! I can do so in a few minutes - thanks again!
@lusty minnow Have you sent the email in yet? No rush, just making sure I can grab it whenever you send it in
I accidentally closed my window somehow, so rewriting it now ðŸ˜
Got email and grabbed it. Closing thread for now, we will reach out through that email