#ensignkaul_62656
1 messages · Page 1 of 1 (latest)
I don't think it is possible for this to happen automatically. In general we don't copy metadata between related objects, though there are a couple of exceptions. Subscriptions will copy the metadata that is set directly on them in to the subscription_details.metadata hash on an invoice, but this won't include the product metadata https://docs.stripe.com/api/invoices/object#invoice_object-subscription_details-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I will double check to see if this can be done some other way but last time I checked, you would need to listen to a webhook and then copy the metadata from the invoice to the payment intent and charge via the API
ok, thanks for checking
Hello, apologies for the delay. Unfortunately I am not seeing a way to do this, so webhooks and API calls would be the best way to get that metadata all the way to the charge and payment intent objects
That being said, it may be easier to move those parts of your fulfillment logic to an invoice or subscription related event. Those should have the metadata that you set on the subscription