#AtalAtal
1 messages · Page 1 of 1 (latest)
Hi 👋
How are you creating the Transfer?
I want to send payouts and make a destination charge.
So on the PaymentIntent I pass in the Connected Account ID as the destination.
I want to manually payout the connected account, but only the booking (payment) I want. So I want to search in the transfers of that connected account.
I don't know if this is the right way though.
I'm sorry but none of that makes sense to me. What does this have to do with passing metadata?
So I want to pass in the booking ID in the metadata. Because when the service for that booking is delivered. I want to search the connected account's transfers for that booking ID and issue the payout.
I only want to payout a certain amount, in this case, the price of the booking. Not the whole amount.
Okay. So unfortunately you can only pass the destination and amount to the Transfer object.
I thought so.
There are a couple ways you could try to do this.
Depending on how fast. you create Payment Intents/transfers you could try to match up the Transfer with the previous Payment Intent and copy the metadata.
I have the amount that needs to be paid out in my own database as well, but for cross region payments, the currency exchange makes it different.
Or you could just listen for the transfer.created event, look up the source_transaction, and get the metadata from that.
https://stripe.com/docs/api/transfers/object#transfer_object-source_transaction
In this Payment Intent: 'pi_3Mjq7FDOdw8vQKwD0H79Aplr'
I have a €290.02 transfer amount. But that is exchange to DKK, when transfered.
How can I payout the exact exchanged amount to the connected account?
Oh never mind. I got it. Throught the transfer object.
You may close this thread.
Thanks.