#Jerry Jose
1 messages · Page 1 of 1 (latest)
Hi there, yo need to call List Checkout Sessions API (https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent) and pass the payment_intent ID in order to retrieve the Checkout Session of interest, and then access its metadata.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alternatively, you can set the metadata to payment_intent directly so that you don't need to get the metadata from a Checkout session https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but when we create session how we can set payment intent here?
can we get checkout session by the payment intent id?
Pleas refer to my answers and docs