#gyan.s

1 messages ยท Page 1 of 1 (latest)

rocky jayBOT
dusk panther
#

Hi ๐Ÿ‘‹

Are you passing the ephemeral key to the payment sheet upon initialization?

#

Do your customers already have ACH payment methods stored in Stripe?

dusk panther
#

In that case you should see saved payment methods displayed as part of the payment sheet.

simple grotto
dusk panther
#

No

#

What do you mean "same email id"?

#

You need to return ephemeral keys for Stripe Customer objects

simple grotto
#

I am actually creating new customer everytime and passing that customer ID in createPaymentIntentRequest, so how should i change that?

dusk panther
#

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

simple grotto
#

okay, so i can fetch existing customer object and pass their customer ID. that should be sufficient?

dusk panther
#

No

#

You need to create the ephemeral key like we show in the docs you linked

simple grotto
#

but ephemeral key comes from the paymentIntent call, and we pass customer Id in the payment intent req.

#

is that not right?

dusk panther
#

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

simple grotto
#

okay

dusk panther
#

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

simple grotto
#

got it, trying it out

dusk panther
#

Great, I hope it works out for you