#ensignkaul_62656

1 messages · Page 1 of 1 (latest)

woeful birchBOT
grand raft
#

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

#

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

west cloak
#

ok, thanks for checking

grand raft
#

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

woeful birchBOT