#American Brands llc-transfer-metadata
1 messages · Page 1 of 1 (latest)
Ah, apologies for not addressing that.
No, there isn't a way to add metadata directly to the transfer when using destination charges.
But I think you can map the transfer back to it's related payment intent (double checking this on the side), so you might be able to store the metadata on the payment intent initially and then copy it to the transfer later.
Ok thats good enough, how we can do that?
Once the Payment Intent has succeeded, the associated Transfer will be created.
On the Transfer object you can find the related Charge in the source_transaction:
https://stripe.com/docs/api/transfers/object#transfer_object-source_transaction
From which you can find the associated Payment Intent:
https://stripe.com/docs/api/charges/object#charge_object-payment_intent
Then you can check the Payment Intent for your 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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.