#Fonseca
1 messages · Page 1 of 1 (latest)
Hello 👋
Let's chat here!
Hey
How can I overcome that?
I need it to work that way I explained
I can't create the trasnfer without the source_transaction because it's mandatory for transfers in Brazil
So since you already have a destination selected on the PaymentIntent, you would only be able to transfer to that one account. That's how destination charges work. If you need to transfer to several accounts then you'd likely want to use Separate Charges and Transfers flow.
You can take out the destination from payment_intent_data and create transfers to both the accounts separately.
So I would create the checkout without the destination
After the charge is created, retrieve it, check its value, transfer everything less 45,00 to the first user
And later in the system transfer the 30,00 to the other user