#Nasir

1 messages · Page 1 of 1 (latest)

ebon wyvernBOT
lament fiber
#

👋 happy to help

normal karma
#

please

lament fiber
#

would you mind elaborating?

normal karma
#

I want to add processing fee to the customer before Getting them charge

#

$transfer = \Stripe\Transfer::create([
'amount' => $amount,
'currency' => $seller_bank_account->currency,
'destination' => $seller_account,
"expand" =>array("balance_transaction")

                                 ]);

Here I want to add processing fee to the Transfer , I have calculated on my end but the value is not accurate from USD to CAD

#

?

#

@ionic mesa please help

#

@silent vigil

#

@lament fiber

lament fiber
#

I will be with you shortly, please bear with me

normal karma
#

Sure Thank You

lament fiber
#

I'm not sure I fully understand the question

#

would you mind elaborating a bit more please?

normal karma
#

What i am trying to achieve that , I want to add the stripe processing fee on customer bill before charging the customer

#

But there is no API to get the processing fee amount , I am calculating from my side but that is not accurate to the actual Processing Fee

lament fiber
normal karma
#

I have tried it but it's return value is different than the actual fee

#

$stripeFeePercentage = 0.029;
$stripeFixedFee = 0.30;
$totalAmount = (20 + $stripeFixedFee) / (1 - $stripeFeePercentage);
$processingFee = number_format($totalAmount,2);

#

This return $0.91 while the stripe charge for $1

#

But currency is CAD not $ , I have tried so many ways , Please help me out

lament fiber
#

I don't have visibility over your pricing model with Stripe

#

it's better to contact support https://support.stripe.com/?contact=true