#joelalcedo-on_behalf_of
1 messages · Page 1 of 1 (latest)
Setting on_behalf_of is how you change the Merchant of Record for destination charges. So instead of the Platform being considered the merchant of record, it's the connected account. You'll want to read https://stripe.com/docs/connect/destination-charges#settlement-merchant
i see. so in other words, if i wanted to keep the platform as the merchant of record, and use stripe.transfers.create which allocates a percentage to a certain connected account, i should not use on_behalf_of in the original payment intent, right?
Correct. You would leave it out if you want to keep the platform the merchant of record
thanks so much karbi!
i have a related follow up question...
if i wanted to include connected_account id as a relevant metadata field in the payment intent object, without using on_behalf_of (as i would like to refer to this field in the webhook after a successful payment intent is emitted) what would the appropriate field be?
i'm thinking using the "metadata": { }, field would be the right move but not sure if there's a. better solution
Putting it in the metadata would be fine - but I also want to mention, if you only plan on doing a transfer to a single account you could just set transfer_data so that the transfer is done for you automatically when the Payment Intent is paid
omg, THANK YOU SO MUCH!!!!!
i was overcomplicating this so much,
i built an entire webhook connected to my server just to try to pull this off when i could have just used the transfer_data field 😵
appreciate your help so much and have a great weekend