#tomh0027
1 messages · Page 1 of 1 (latest)
any other doc for React application?
web apps or native apps?
web app
Then here: https://stripe.com/docs/stripe-js/react
Yes first you create the PaymentIntent on the backend, and then sent the client_secret to the frontend to mount the Payment Element
I created a product on the dashboard and I am going to accept payment for that product
PaymentIntent don't support Products/Prices, you would directly set the amount you want.
If you want to use PRoducts/Prices, then you should use Checkout Session
This is covered here: https://stripe.com/docs/payments/accept-a-payment?platform=web
can I apply promo code to it?
Checkout Session support promo codes yes. Either you pass them in the API, or you let users enter it directly on the Checkout Session page