#junaid_abbasi999

1 messages · Page 1 of 1 (latest)

lone martenBOT
icy night
#

Hi, in this case user2 is the end customer of user1, is that correct?

fast pike
#

yes money will be transferred to user2. and I want to cut 10% as application fee.

#

and also not sure what you mean by end user exactly.

icy night
fast pike
#

const paymentIntent = await stripe.paymentIntents.create({
amount: 3000,
currency: 'cad',
confirm: true,
customer: 'customer id',
payment_method: 'payment_id',
off_session: true,
transfer_data: {
amount: 2500,
destination: 'express-connect-account',
},
})

#

I tried to do it within this object but i get this error "You may not provide the application_fee_amount parameter and the transfer_data[amount] parameter simultaneously."

icy night
fast pike
#

but where would i conform that i received 500. I cannot see it anywhere.

#

can i see it anywhere on stripe console?

icy night
#

You should be able to see it on your Dashboard

fast pike
#

I see a payment object on payments section it has 2000 and when I see it's details i see 100 stripe fee and I don't see 500.
when i check connect express account of user2 I see 1500 being added. but 500 is still missing.

#

if i check for collected fee I see no result.

icy night
#

Actually, I just tested this and you can pass application_fee_amount with this type of charge. However, it would only work if you do not pass amount: 2500.

#

On your current set up, you can see the amount transferred, Transfer amount $25.00 if you type the payment intent id on the search bar.

#

The charge is made on your Platform account so you would not explicitly see this amount alone. Instead, you would see the entire 3000 amount and see that 2500 transfer was made to the connected account.

fast pike
#

So, i looked here and there and I see that the balances tab has total application fee charged in each transaction. Am i right? is that it? Is that my application free?

#

I am talking about stripe console

icy night
#

Yes, it should be reflected here: https://dashboard.stripe.com/test/balance/overview. With the code you shared, you are not taking an application fee. Instead, you're charing 3000 amount and only transferring 2500 to your connected account. Just want to clarify that it's different.

fast pike
#

I did actually follow your mentioned approach to remove the amout property and add application-fee-amount so now on connect accout i see $5 as my application fee.

icy night
#

I see, in this case, that is correct