#Jerry Jose
1 messages · Page 1 of 1 (latest)
What does your success_url look like?
Are you using the CHECKOUT_SESSION_ID variable? https://stripe.com/docs/payments/checkout/custom-success-page
yes currently iam using checkout session id in success url but instead of this can I get payment intent id?
one more another question If there is any issue (network issue) while submitting payment request, how user can repay for the recently selected item?
No, you'd need to retrieve the Checkout Session object on your success page and read the payment_intent field
Generally you should just rely on checkout.session.completed events instead. There's no guarantee your customer even makes it to your success_url
The Checkout UI would reflect the payment failure, and they can retry there. The customer is only redirected to your success_url when the payment succeeds
Ok Incase if there is network issue while submitting payment request, How user can re-pay for the same item?
I just answered that:
The Checkout UI would reflect the payment failure, and they can retry there
No, you'd need to re-generate a new Checkout Session