#CharlieMalmqvist
1 messages ยท Page 1 of 1 (latest)
Hello ๐
With newer API versions, we don't create a PaymentIntent until the checkout session has been confirmed. For older API version we used to create PaymentIntents when Checkout was created.
We likely haven't updated the docs to reflect the latest behavior
Is there any way to pass metadata from session creation to when receiving the expired event
Because theres metadata I send when creating the payment intent which I need when receiving the sessionexpired event
You can set the metadata on the Checkout object directly
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
You should receive it on the expiry
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, sorry, I overlooked that.
Thank you for the help, have a good day!