#I need urgent help
1 messages · Page 1 of 1 (latest)
Hi, how can we help?
can you provide your request id?
req_xxx
When you pass decimal amount
means
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
or https://dashboard.stripe.com/logs for Live mode
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
then find the request you sent
suppose that i am passing 50.25*100 then after payment success for $amount[charge] i am getting value as 502500
I could help you better if we have a request id (in the format req_xxx from above links)
It depends on the currency
and the parameter you used
Okie, you passed 40200 for MYR. MYR is a non-zero-decimal so it means 402
All API requests expect amounts to be provided in a currency’s smallest unit. For example, to charge 10 USD, provide an amount value of 1000 (that is, 1000 cents).
can you brief me this
The Doc above could explain better than me 🙂
It's basically when you pass 40200, it means 402
then how to store its as MYR 40.2 in my database
????
So instead of setting amount = 40200 in your request req_2uHCzlw5M1SNzS, you set amount = 4020, stands for 40.2 MYR
how to set that
$charge = Stripe\Charge::create ([
"amount" => $request->Price*100,
"currency" => $request->paymentCurrency,
"source" => $request->stripeToken,
"description" => "Test payment.",
]);
its 40.2
then $request->Price*100 should be 4020
But I am seeing you passed 40200 on req_2uHCzlw5M1SNzS
after multiplying 40.2*100 why is showing me "amount" => 40200