#Jayho
1 messages · Page 1 of 1 (latest)
Hello 👋
You can set subscription_data.metadata when you create a checkout session via the API
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata
is it possible to do this via query params / non-programmtically? ideally just want to use the url generated from stripe's portal
We don't copy the metadata set on checkout to underlying subscription automatically. If you only care about the user ID on your client side then you can pass the Checkout Session ID as query parameter and retrieve the Checkout Session
We have docs on this
https://stripe.com/docs/payments/checkout/custom-success-page
gotcha, will take a look, thanks @dusk wind