#suba_connect-destination
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300478105160384634
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello can you send me the ID of the source charge that you are working with here? And as best as you can tell is that error accurrate? As in do you know if another transfer may already exist on this charge?
You should be able to send up to 10, that error message typically only happens because that amount has already been sent out
Where can I find the charge ID in the dashboard?
Is it okay if I send the payment intent / transfer?
This would be a payment I just did pi_3QEunBLz9mgKaNPc1wM4i75d
transfer id: tr_3QEunBLz9mgKaNPc1BFHlguM
here's the charge id: ch_3QEunBLz9mgKaNPc1RG4OYwf
The error is not accurrate.
The flow of the success is pretty simple.
There's a payment (ex: 10EUR), on success, we calculate stripe fee + our fee + other fees, calculate the net amount, after calculation we do a transfer of the net amount to the connected account
But for some reason I get the error above, and it transfers the full 10 euros, which I don't understand why
Thanks for the info. I think there may be confusion around what that error message means. It does look to be accurrate from what I can see.
Basically that source_transaction parameter makes sure that you can't send away more money than the charge brought in. ch_3QEunBLz9mgKaNPc1RG4OYwf is for 10 EUR and you created tr_3QEunBLz9mgKaNPc1BFHlguM for 10 EUR, meaning that all of the funds from that charge were actually sent to that other account
When you try to create another transfer for 912 and specify the same source transaction, we error out because there aren't any funds from that original transaction left over to send away
but why is there being created a transfer for 10 eur? I'm not doing that anywhere
This is the only transfer I have that is inside the success event. For a payment of 10 euros, the netAmount variable is 912 if I'm not mistaken.
It shouldn't even transfer 10 euros
Sorry if I'm being confusing
suba_connect-destination
@rain lily you seem to be using Destination Charges with ApplicationFees. This means you charge $10, you transfer $10 and then you take back a portion as an ApplicationFee. So this all seems expected to me
I recommend reading: https://docs.stripe.com/connect/destination-charges?platform=web&ui=stripe-hosted&fee-type=application-fee and the diagram below that
You're right, our bad.
We were too focused on the success event but the problem was in the payment intent creation.
Our goal is to use seperate charges.
Sorry for the trouble and thanks for the help