#DamManc
1 messages ยท Page 1 of 1 (latest)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you set metadata on the phase, that sets the metadata on the Subscription object
But not until the phase is entered
It won't be on the invoice object
aaaa ok, so i just set metadata outiside and it will be good, thank you! i'll try ๐
What you mean by outside?
On what Stripe object do you want the metadata to appear?
Metadata is only available on the object you explicitly set it on
invoice.paid and invoice.payment_failed
at this moment there i can take metadata but have two object inside lines.data
and it is an array, so, i can manage to understand what object is correct?
e.g. in_1LmzGyGbpWQ4NfkI5HZACN4iin_1LmzGyGbpWQ4NfkI5HZACN4i
Oh you'd have to do that explicitly on the invoice then: https://stripe.com/docs/api/invoices/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you want metadata on the actual invoice object
Otherwise, if you set it on the phase, you can find it on the subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you'd retrieve the subscription from the id on the invoice: https://stripe.com/docs/api/subscriptions/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then look at its metadata
oh ok,, i understand, i need to go :/ after i'll will try thank you
No prob