#Vats-Connect
1 messages · Page 1 of 1 (latest)
Hi there, so you want to accept a payment of 10 dollars and transfer only 5 dollars to the connected account?
Actually when I capture 10$ it will transfer 5$ to connect account
But What happen if I capture 5$ only ?
how much will it go to destination account and how many will go to admin account.
Once the payment intent is created as below:
const paymentIntent = await stripe.paymentIntents.create({
amount: 1000,
currency: 'usd',
transfer_data: {
amount: 500,
destination: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
},
});
Now after wards I want to capture partial amount let say 5$ only, so I will call capture api like below:
const intent = await stripe.paymentIntents.capture('pi_ANipwO3zNfjeWODtRPIg', {
amount_to_capture: 500,
})
Now in this scenario what will happen ?
how the calculation will work ?
In this case, you are transferring $5 to the connected account
yes but what if we have partial payment to capture because the intent is of 10$ and at the time of capture we will charge 5$ only in that case the intent was of 10$ which states that some amount will be transferred to connect account and rest of the amount will be in stripe main account, since the capture amount is change how will the intent will understand that we need to do certain calculation not on 10$ but on 5$
the amount on destination will be anything less than the total amount
What exactly do you want to achieve here? do you want to keep some fund in platform as an application fee?
yes we want to keep some fund as an application fee and send some amount to destination account
But in our case there is a scenario if user cancel the booking then we charge only 50% of the amount
At that time we capture partial amount which is 50% (eg: 5$) of total amount (eg: 10$)
OK. So the use case is more about refund.
the amount is on hold first
once we will capture it the it will deduct the amount from the account
otherwise it be released
Instead of using manual capture, I'd suggest you to do a partial refund (https://stripe.com/docs/connect/destination-charges#issuing-refunds) , and you can set reverse_transfer to true so that the fund will be reversed transfered from connected account to platform.
Alternatively, you can let the platform to hold fund first, and transfer the necessary amount to connected account when you think the time is right.