#kkkkkkkkkkkkkkkkkkkkkd-checkout-payment-intent
1 messages ยท Page 1 of 1 (latest)
Hi ๐ you can retrieve the Checkout Session object and check it's payment_intent field to find the ID of the related Payment Intent:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok what's that feature called where I can pass in a parameter in the API call like {checkout_session_id} - sorry for the vagueness I forgot.
Hm, is this what you're looking for? Where you can have us append the ID of the completed Checkout Session to the success_url?
https://stripe.com/docs/payments/checkout/custom-success-page
yeah i think that's it and how would I pass in the payment intent ID to the success url
That you can't do, it only works with the ID of the Checkout Session. But you can then pass the Checkout Session ID to your backend where you can use this function to retrieve the session and find it's associated intent:
https://stripe.com/docs/api/checkout/sessions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.