#ahmedmohamed24
1 messages · Page 1 of 1 (latest)
To get the full context, where did you get the advice to use Direct Charges?
And what is your Connected Account type?
I got this advice from this discord channel
I don't know my connected account type, How could i do so
@foggy ruin
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
You can put up a calculation formula so the final amount would coverage the Stripe fee, if that's what you mean
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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
so you would need to increase the application_fee_amount so it will finally be 10 cent on your Platform, correct?
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
What if you just increase application_fee_amount to 110 cent?
the problem is that I don't know the exact Stripe fees amount
Still there @foggy ruin ?
You can calculate it based on your country. Which country is your merchant?
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
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
what if the user paid in Euro for example
Same rate apply to a Canada merchant
You can run some Test mode transaction to see
how it would produce
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
here Stripe fees amount is 3.80
Okie, let's look at the Balance Transaction to see the fee breakdown
Use API, Retrieve the Charges inside the PaymentIntent, and expand its balance_transaction https://stripe.com/docs/api/charges/object#charge_object-balance_transaction
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You will see the fee_details https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
should I ask my question again ?
Could you please resume your latest follow up question ?
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
You can't compute the Stripe fees in advance, there isn't a clear and uniq formula for that. You can have an approximate value following this link:
https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
okay what do you suggest to solve my situation
I don't want my platform to pay the transactions stripe Fees
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.
but my approximate fee may be less than the actual amount
Stripe doesn't provide a solution for such scenario ?
No, you can't know in advance the amount of Stripe fees
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