#muhammad-adeel_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- muhammad-adeel_api, 6 days ago, 32 messages
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?
hi there!
no we don't have a way to do this. you would need to compute the fee yourself. you can see the fomula to use here: https://stackoverflow.com/a/66926456/17427213
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.
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.
please find any solution my boss want $30 dollar
but it's recived $29.99 ๐ฉ
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.
just need a bit in payment intent of inclusive or exlusive as you passing in invoice item for tax is inclusive and exclusive
I don't understand
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,
]);`
need stripe_fee_behavior in payment intent
that's doesn't exist. like I said you'll need change theamount