#o7_checkout-invoice-metadata

1 messages ยท Page 1 of 1 (latest)

old birchBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1354859918204604517

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

torn saffron
#

Hi ๐Ÿ‘‹

We don't copy metadata between Stripe objects. There is no metadata copied from the Checkout Session to the Invoice

distant dirge
#

Thanks. Seems like I'm only able to repo yesterday by manually creating a subscription on the dashboard & manually setting metadata which sends the metadata over to the invoice.payment_succeeded event.

Is there any other way to receive my customers metadata (userId) in the invoice.payment_succeeded event?

torn saffron
#

We document the exceptions (where metadata is copied) here. Subscription to Invoice is one of those cases

#

If you want to set metatadata when creating the Checkout Session and have it show up when receiving the ivnoice.payment_succeeded event, you need to set it in the subscription_data.metadata parameter

#

That will behave the same as when you set metadata on the Subscription in the Dashboard

distant dirge
#

Success! Thank you much

torn saffron
#

Great ๐ŸŽ‰ I'm glad we could help ๐Ÿ™‚