#Adil kadiyawala
1 messages · Page 1 of 1 (latest)
What is your question?
For example a customer checkout an order with $100.
I have to transfer 99% to connected account and 1% to platform.
so $99 will be credited to connected account and $1 will be on platform.
For above logic I have append the "application_fee_amount" and "transfer_data" to params array of PaymentIntent.
like this :
$params['application_fee_amount'] = 1%;
$params['transfer_data'] = [
'destination' =>'acct_1Lu8osSCDjYrgfYo',
];
So is this a correct way? and what about the stripe fee? Stripe fee will be deduct from main platform amount? from 1%?
Hey! Taking over for my colleague. Let me catch up.
According to your use case, I assume you are using destination charges, in this case your platform account is accepting the payment from the customers.
So is this a correct way?
Yes
what about the stripe fee? Stripe fee will be deduct from main platform amount? from 1%?
Your platform account is the one accepting the payment, so Stripe Fees will be deducted from your platform balance/from the 1%
Okay so How can I get the Stripe fee in the payment intent object before the place order?
Or I want to deduct that Stripe fee from whole 100% amount instead of 1% amount. How can I do this?
Actually Stripe fees are deducted from the account who is accepting the Payment. In your case the platform account who's accepting the Payment. The 100% amount is 99% for the connected account and 1% for the Platform account. So the fees are deducted from the 99% or from the 1%, what do you mean by deducting the fees from 100% of the amount ?
👋 taking over for my colleague. Let me catch up.
Okay
it's not a matter of 1% or 99% you shouldn't think of it this way
instead you should think of who is paying what and getting what
as my colleague explained in destination charges the platform pays the Stripe fees
means?
I am using test mode currently and I tried to checkout 5 times so what I see that application_fee_amount was deducted from total amount perfectly means 1% and 99% scenario work good but in main platform account I found balance is in negative figure.
I found balance is in negative figure.
exactly why I said don't think of deduction from 1%
so that means Stripe fee was taken from 1% amount right?
it's more you have to pay the Stripe fees so the fees will be deducted from your balance
regardless of how much you earn from that transaction
Okay but we need to deducted that stripe fee from connected accounts
so what i need to do for that?
what is the type of your Connected accounts? Standard, Express, Custom?
there are a couple of solutions/workarounds here
Yes please suggest
I think the best would be to do separate charges/transfers for one reason and I'll explain why but in the meantime would you mind taking a look at this https://stripe.com/docs/connect/charges-transfers
Okay let me look at it
this explains how to take the Stripe fees into consideration before doing the transfer https://stripe.com/docs/connect/charges-transfers#collecting-fees
To use Separate charges functionality I need to create a functionality after placing an order
yes that's true
using unique transfer_group right?
you can use webhooks
I don't follow
How can I get transaction Id?
you want to add the source_transaction?
I think this is the suitable for our requirement:
https://stripe.com/docs/connect/charges-transfers
first I will transfer whole amount to platform and after place an order I will transfer 99% amount from it to connected account
and then you can deduct the Stripe fees from the 99%
so collect 100% and transfer 99%-Stripe fees
Okay thanks