#cdric-chevillard_checkout-sub-invoice-metadata
1 messages ยท Page 1 of 1 (latest)
๐ 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/1343630463419289642
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Try passing the metadata in the subscription_data.metadata parameter when you create the Checkout Session
i try what you said,
'subscription_data' => [
'metadata' => [
'numero_compte' => '706110',
]
],
But only present on subcrption but not on invoice like my screen
Right. Sorry, Invoices do not copy metadata from Subscriptions.
Not directly.
But can you share the ID of the Invoice?
Invoice : in_1Qw53NJD16ieXYBwx5IOQBY5
I don't want to do it manually, I want to automate things.
Invoices get copies of Subscription metadata but not to the metadata property directly. For this Invoice, you can see the metadata in subscription_details.metadata. When I look at this event, I can see that is set to numero_compte: "706110"
This metadata hasn't exported when i export invoices list ?
We aren't familiar with Dashboard exports here. If you use the API you can get this data from the Invoices object.
ok thx