#Jyrks

1 messages · Page 1 of 1 (latest)

cosmic matrixBOT
subtle crown
#

Hi there, yes you can get the email address from the PaymentIntent's billing_details.email.

modern yoke
#

We are also checking some payments from our customers in Stripe and Apple Pay payments have no Customer attached to the payment

#

This is the ID: pm_1M8q9CCEnZhi6R0tQv8iOAvg on the Payment

subtle crown
modern yoke
#

Hmm must be a mistake

#

So something is wrong with our implementation?

subtle crown
modern yoke
#

Well the user does not have a registered account with us. We allowed them to just buy the product, hoping that we'll catch their billing details from Apple Pay

#

So all they entered was - buy the product with Apple Pay

#

We have a similar implementation with Google Pay, but there the customer is added, however they are missing email: ID: pm_1M8n5xCEnZhi6R0tLHRK9TP6

subtle crown
#

Just want to be clear on your requirement, so you want to associate a completed PaymentIntent with a customer (either existing or new)?

modern yoke
#

Well we want our customers to purchase a product without them entering any details except for pressing the Google/Apple Pay button. Wondering if this is possible - if we can catch their email - I guess it is.
And then wondering what endpoint we didn't call correctly if we are no capturing the data right now

subtle crown
#

Are you using Checkout or PaymentRequest Button?

modern yoke
#

Seems to be PaymentRequest Button

subtle crown
#

You can then use this information to create a customer, or retrieve an existing customer if this email address matches, and use the customer ID to create a PaymentIntent.

modern yoke
#

Okay and the requestPayerEmail is taken from Apple/Google Pay and does not require user input?

#

We could also request all the other fields too?
requestPayerPhone
requestShipping

subtle crown
#

Yes you are right.

modern yoke
#

Okay, this was very helpful. Thanks a lot!

subtle crown
#

Welcome!