#muhammad-adeel_api

1 messages ยท Page 1 of 1 (latest)

pliant vergeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1301474888460009482

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

heavy bone
#

want to charge stripe fee from customer. is there any way to pass any param in payment intent to charge amount is inclusive or exclusive?

eternal badger
#

hi there!

heavy bone
#

i have calculated fee. for example
my charge able amount is $30
in case of australian card on $30 stripe charge 0.81
then i add total amount = $30+$0.81 = $30.81
when made transaction on total amount stripe charge 0.83
need help in this why.

eternal badger
#

that's normal: you increased the amount, so the stripe fee also increased.

#

that's why you need to use the formula I shared in the link above

#

but note that we don't recommend doing this at all, since it can be illegal in some countries. instead just increase all your prices by X%, to cover for the Stripe fees.

heavy bone
#

please find any solution my boss want $30 dollar
but it's recived $29.99 ๐Ÿ˜ฉ

eternal badger
#

we can't write code for you. just use the formula in the link I shared to re-compute the amount based on the Stripe fee.

heavy bone
#

just need a bit in payment intent of inclusive or exlusive as you passing in invoice item for tax is inclusive and exclusive

eternal badger
#

I don't understand

heavy bone
#

as passing param of tax_behavior in invoice item
$stripe->invoiceItems->create([ 'description' => 'MM custom invoice testing', 'customer' => $user->stripe_id, // 'price' => $productPrices->id, 'invoice' => $invoice->id, // 'currency' => 'aud', 'unit_amount' => 3000, 'quantity' => 1, 'tax_behavior' => 'inclusive' ]);

need stripe_fee_behavior in payment intent

`$stripeCharge = $stripe->paymentIntents->create([
'customer' => $user->stripe_id,
'amount' => $totalAmount * 100,
'currency' => Setting::CURRENCY,
['payment_method' => $request->paymentMethod,
"expand" => [ "latest_charge.balance_transaction"]],
'confirm' => true,

  ]);`
eternal badger
#

need stripe_fee_behavior in payment intent
that's doesn't exist. like I said you'll need change the amount

pliant vergeBOT