#ahmedmohamed24

1 messages · Page 1 of 1 (latest)

gleaming moatBOT
foggy ruin
#

To get the full context, where did you get the advice to use Direct Charges?

#

And what is your Connected Account type?

wheat pulsar
#

I got this advice from this discord channel

#

I don't know my connected account type, How could i do so

#

@foggy ruin

foggy ruin
#

Let's continue here

#

Can you link to the advice of changing to use Direct Charge?

wheat pulsar
#

It's an old thread
I don't know how to get it
ignore it
how can I solve my situation ?
I want to charge the customer and the fees should be deducted from the transaction itself not from the platform balance

foggy ruin
#

You can put up a calculation formula so the final amount would coverage the Stripe fee, if that's what you mean

wheat pulsar
#

I checked it out
but lets assume I'm using the following code in PHP

        $paymentIntent = $stripe->paymentIntents->create([
            'amount' => \floor($request->amount_per_time * 100),
            'currency' => 'cad',
            'off_session' => \true,
            'confirm' => \true,
            'payment_method' => $paymentMethodId,
            'customer' => $user['stripe_customer_payment_code'],
            'metadata' => [
                'userId' => $user['id'],
            ],
            'payment_method_types' => ['card'],
            'expand' => ['charges.data.balance_transaction'],
            'application_fee_amount' => 10, //10 cent
            'on_behalf_of' => \data_get($entity, 'paymentdetails.stripe_account_id'),
            'transfer_data' => [
                'destination' => \data_get($entity, 'paymentdetails.stripe_account_id'),
            ],
        ]);
#

how could I pass the stripe fee on the customer or on the connected user

foggy ruin
#

so you would need to increase the application_fee_amount so it will finally be 10 cent on your Platform, correct?

wheat pulsar
#

It's already done like that
but the application fee amount is 10 cent
and the Stripe fee amount is 100 cent, so the final balance on my platform is -90 cent

#

I want the 100 cent (Stripe Fees) to be deducted from the connected user or the customer

foggy ruin
#

What if you just increase application_fee_amount to 110 cent?

wheat pulsar
#

the problem is that I don't know the exact Stripe fees amount

#

Still there @foggy ruin ?

foggy ruin
#

You can calculate it based on your country. Which country is your merchant?

wheat pulsar
#

I don't have constraints for the country
my connected users may be from any country

#

but my platform account business is on Ontario, Canada

#

The customers also could be from any place

foggy ruin
#

Okie so it should be 2.9% + C$0.30 for a Canada merchant

#

If you have any example PaymentIntent, can you look at the balance transaction to confirm it?

#

ie if you charge C$ 100, Stripe fee should be C$ 3.2

#

And now you can form the formula, so to take application_fee_amount = X*2.9% + 0.3 + 0.1

wheat pulsar
#

what if the user paid in Euro for example

foggy ruin
#

Same rate apply to a Canada merchant

#

You can run some Test mode transaction to see

#

how it would produce

wheat pulsar
#

here Stripe fees amount is 3.80

foggy ruin
#

Okie, let's look at the Balance Transaction to see the fee breakdown

gleaming moatBOT
wheat pulsar
#

here is the response
Its 3.8 Cad$

sand oasis
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

wheat pulsar
#

should I ask my question again ?

sand oasis
#

Could you please resume your latest follow up question ?

wheat pulsar
#

I'm using destination charges
I want to pass Stripe fees to the customer or the connected user
@foggy ruin suggested to increase my platform fees by the stripe fees amount
but I don't know how to calculate the exact Stripe fees amount before the transaction being processed

sand oasis
wheat pulsar
#

okay what do you suggest to solve my situation
I don't want my platform to pay the transactions stripe Fees

sand oasis
#

okay what do you suggest to solve my situation
As I mentioned in my previous message, compute the approximate fee and consider that amount when charging the customer.

wheat pulsar
#

but my approximate fee may be less than the actual amount

#

Stripe doesn't provide a solution for such scenario ?

sand oasis
#

No, you can't know in advance the amount of Stripe fees

wheat pulsar
#

I don't want to know the amount of Stripe fees
I want to charge it from the transaction
either from the connected user or the customer
I dont' want to charge it from by platform balance