#Isidoro Ferreiro
1 messages · Page 1 of 1 (latest)
Do you have an example Customer? When you create the Payment Sheet and accept those details, are they also not showing up on the Payment Intent?
They seem to be overwritten by the apple pay billing details
Apple pay doesn't provide an email, and it becomes null instead of using the default
Actually none of the default billing details shown in the Payment Intent or charge, even when using a card
What about on the Customer?
I thought that's where it's supposed to set those, but I could be wrong
They don't show on the customer either
Hmm... let me check with my team and see if anyone has any idea
The typescript definition file of the RN sdk says:
/** PaymentSheet pre-populates the billing fields with the values provided. */
But email and name are not fields that are shown in the payment sheet
Can you give me an example Customer ID or Payment Intent ID that was created in this manner?
what version of the SDK are you using? And what happens if you set the zip code (not just the name and email) from the defaultBillingDetails?
I'm using version 0.18.1 of the react native sdk
defaultBillingDetails: {
name,
email,
address: {
postalCode: '12345',
},
},
The postalCode is prepopulated as expected
But the name and email are not sent to stripe
Okay, so: it looks like there's no way to require collecting full billing details with the Payment Sheet, and what defaultBillingDetails does is just prefills the UI with whatever is passed in. Since name and email address aren't collected for cards, we have nowhere to prefill it so it's not sent back to us as part of the request
For a Payment Method like klarna which does require email address to complete payment, you should see it work
Does that make sense?
ohhh I see...
How should I send that information so those fields are populated?
Want to collect name & email for fraud prevention
You can't send it via the Payment Sheet in the case of card payments, so you'd need to make a separate API call to update the Customer object
Got it, thanks!