#Vats-Connect

1 messages · Page 1 of 1 (latest)

copper swift
#

Hi there, so you want to accept a payment of 10 dollars and transfer only 5 dollars to the connected account?

quiet root
#

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 ?

copper swift
#

In this case, you are transferring $5 to the connected account

quiet root
#

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

copper swift
#

What exactly do you want to achieve here? do you want to keep some fund in platform as an application fee?

quiet root
#

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$)

copper swift
#

OK. So the use case is more about refund.

quiet root
#

the amount is on hold first

#

once we will capture it the it will deduct the amount from the account

#

otherwise it be released

copper swift
#

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.