#victoria.fabris-keys

1 messages · Page 1 of 1 (latest)

wary magnet
#

hi! the client secret is used with your publishable key to complete a payment on the frontend.

An ephemeral key is used to access a specific scoped object(a Customer) so that on the frontend you can do things like list their saved payment methods.

When you use our integrated components on mobile like PaymentSheet(I assume that's what you're looking at), you create both so that the component is able to present both saved payment method and process payments with those or newly-entered ones.

hard topaz
#

so if i need to access data from the customer in the frontend, i will need to use this ephemeral key, is that correct?

#

but to access in the backend, i dont need this ephemeral key

wary magnet
hard topaz
#

another question:

#

just to make sure im doing this in the right way

#

im making possible to my customer to choose if they want to pay in installments

#

im using subscription to make that, so if the customer chooses to make the payment with more than 1 installment, i created a subscription, if they going to pay the entire price amount, i create a payment intent

#

or i can create a subscription even if this subscription is going to last 1 month? (1 installment)

wary magnet
#

either way works, you could create a PaymentIntent directly for the one time payment, or create a Subscription and then cancel it after the first invoice has been paid