#American Brands llc-transfer-metadata

1 messages · Page 1 of 1 (latest)

soft thistle
#

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.

west pond
#

Ok thats good enough, how we can do that?

soft thistle
#

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.