#Isidoro Ferreiro

1 messages · Page 1 of 1 (latest)

lusty tangleBOT
mossy hemlock
#

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?

lofty shore
#

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

mossy hemlock
#

What about on the Customer?

#

I thought that's where it's supposed to set those, but I could be wrong

lofty shore
#

They don't show on the customer either

mossy hemlock
#

Hmm... let me check with my team and see if anyone has any idea

lofty shore
#

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

mossy hemlock
#

Can you give me an example Customer ID or Payment Intent ID that was created in this manner?

lofty shore
#

pi_3M4qNqABPDn3pBGc0HeFjzYA

#

cus_MoTK9aTPYmLLnt

#

Is on test env

mossy hemlock
#

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?

lofty shore
#

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

mossy hemlock
#

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?

lofty shore
#

ohhh I see...

#

How should I send that information so those fields are populated?

#

Want to collect name & email for fraud prevention

mossy hemlock
#

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

lofty shore
#

Got it, thanks!