#Ayman-card

1 messages · Page 1 of 1 (latest)

south jungle
#

Hi Ayman, what goal do you want to achieve here?

fluid shuttle
#

collect payments using JavaScript code

south jungle
#

OK, are you creating a PaymentIntent or SetupIntent?

fluid shuttle
#

PaymentIntent

south jungle
#

OK, in that case, you should create a Payment Intent in your backend, and then pass the client_secret to the frontend and then call stripe.confirmCardPayment()

fluid shuttle
#

ok i will go through it thanks.

#

for the API key

#

i will use Publishable key or Secret key ?

south jungle
#

Use publishable key in. your frontend app and secret key in your backend app