#Haresh-google_pay
1 messages · Page 1 of 1 (latest)
Hi @topaz beacon! Could you clarify what you want to do?
The common way to integrate with Stripe with PaymentIntent is to:
- Create a payment intent on the backend and pass the client secret from the backend to the front end
- Then on the front end: collect payment details and validate the payment intent
I create payment method id in front end and i pass that method id to backend. Backend will provide client secret how can i pass the client secret in stripe SDK? @jovial fox
How to get payment intent id ?
Are you aware of this documentation page? It covers exactly what you need: https://stripe.com/docs/payments/accept-a-payment-synchronously
- Create the PaymentMethod on the frontend
- Send a request to your backend with the PaymentMethod ID
- Then you create the Payment Intent in your backend, and the Stripe response should contain a
client_secretfield. You need to return that information to your frontend.