#cdric-chevillard_checkout-sub-invoice-metadata

1 messages ยท Page 1 of 1 (latest)

undone otterBOT
#

๐Ÿ‘‹ 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.

obtuse tulip
#

Hi ๐Ÿ‘‹

Try passing the metadata in the subscription_data.metadata parameter when you create the Checkout Session

silent oasis
#

i do but nothing on invoice

#

Subcription

#

Invoice

obtuse tulip
#

If you do nothing you will get nothing

#

Try doing what I said

silent oasis
#

i try what you said,

'subscription_data' => [
'metadata' => [
'numero_compte' => '706110',
]
],

But only present on subcrption but not on invoice like my screen

obtuse tulip
#

Right. Sorry, Invoices do not copy metadata from Subscriptions.

#

Not directly.

#

But can you share the ID of the Invoice?

silent oasis
#

Invoice : in_1Qw53NJD16ieXYBwx5IOQBY5

#

I don't want to do it manually, I want to automate things.

obtuse tulip
#

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"

silent oasis
#

This metadata hasn't exported when i export invoices list ?

obtuse tulip
#

We aren't familiar with Dashboard exports here. If you use the API you can get this data from the Invoices object.

silent oasis
#

ok thx