#Ayman-card
1 messages · Page 1 of 1 (latest)
collect payments using JavaScript code
OK, are you creating a PaymentIntent or SetupIntent?
PaymentIntent
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()
You can use this doc to get started https://stripe.com/docs/payments/quickstart
ok i will go through it thanks.
for the API key
i will use Publishable key or Secret key ?
Use publishable key in. your frontend app and secret key in your backend app