#junaid_abbasi999
1 messages · Page 1 of 1 (latest)
Hi, in this case user2 is the end customer of user1, is that correct?
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.
When you create the payment, you can specify the application fee here, https://stripe.com/docs/api/payment_intents/create#create_payment_intent-application_fee_amount.
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."
Ah, I did not realize you were not using direct charges. You can only charge an application fee on direct charges, https://stripe.com/docs/connect/direct-charges#collecting-fees. In this case, you're already transferring 2500 and your Platform account would get 500.
but where would i conform that i received 500. I cannot see it anywhere.
can i see it anywhere on stripe console?
You should be able to see it on your Dashboard
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.
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.
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
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.
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.
I see, in this case, that is correct