#gyan.s
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Are you passing the ephemeral key to the payment sheet upon initialization?
Do your customers already have ACH payment methods stored in Stripe?
yes
In that case you should see saved payment methods displayed as part of the payment sheet.
yes, so if they just use the same email id, payment sheet will automatically fetch the verified payment_method and use it instead?
No
What do you mean "same email id"?
You need to return ephemeral keys for Stripe Customer objects
I am actually creating new customer everytime and passing that customer ID in createPaymentIntentRequest, so how should i change that?
If you are creating a new customer each time you cannot present saved paymemt methods
So that is the first thing you will need to change
okay, so i can fetch existing customer object and pass their customer ID. that should be sufficient?
but ephemeral key comes from the paymentIntent call, and we pass customer Id in the payment intent req.
is that not right?
No
ephemeral keys are a separate API. Our code snippets show them happening together but that is entirely up to how you code your back-end
is what I'm talking about
okay
So if you create a Customer and save an ACH payment method for them, then you create this ephemeral key for their next session on your RN app, it will display the existing payment method as an option to click on instead of filling out the payment sheet again
got it, trying it out
Great, I hope it works out for you