#Adil kadiyawala

1 messages · Page 1 of 1 (latest)

worthy wingBOT
keen rapids
#

What is your question?

opaque valve
#

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%?

scenic sigil
#

Hey! Taking over for my colleague. Let me catch up.

scenic sigil
#

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%

opaque valve
#

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?

scenic sigil
#

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 ?

opaque valve
#

We need to deduct the fee from 99% amount

#

from the connected account

finite escarp
#

👋 taking over for my colleague. Let me catch up.

opaque valve
#

Okay

finite escarp
#

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

opaque valve
#

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.

finite escarp
#

I found balance is in negative figure.
exactly why I said don't think of deduction from 1%

opaque valve
#

so that means Stripe fee was taken from 1% amount right?

finite escarp
#

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

opaque valve
#

Okay but we need to deducted that stripe fee from connected accounts

#

so what i need to do for that?

finite escarp
#

what is the type of your Connected accounts? Standard, Express, Custom?

opaque valve
#

Custom

#

currently I created it using custom

finite escarp
#

there are a couple of solutions/workarounds here

opaque valve
#

Yes please suggest

finite escarp
opaque valve
#

Okay let me look at it

finite escarp
opaque valve
#

To use Separate charges functionality I need to create a functionality after placing an order

finite escarp
#

yes that's true

opaque valve
#

using unique transfer_group right?

finite escarp
#

you can use webhooks

finite escarp
opaque valve
#

How can I get transaction Id?

finite escarp
#

you want to add the source_transaction?

opaque valve
#

first I will transfer whole amount to platform and after place an order I will transfer 99% amount from it to connected account

finite escarp
#

and then you can deduct the Stripe fees from the 99%

#

so collect 100% and transfer 99%-Stripe fees

opaque valve
#

Okay thanks