Osclass Support Forums

Osclass plugin support => Osclass Pay Plugin => Topic started by: HappyTiger on December 18, 2019, 05:02:35 AM

Title: Wrong payment sent to Stripe.
Post by: HappyTiger on December 18, 2019, 05:02:35 AM
I'm Japanese.

There are tow points that I don't understand about payment.

This item(http://afururu.s1009.xrea.com/afururu.shop/index.php?page=item&id=3 (http://afururu.s1009.xrea.com/afururu.shop/index.php?page=item&id=3)) is ¥10,000.
However, payment amount of stripe screen is ¥1,000,000.

Also, Is 901×1×3 a test name?

   
Title: Re: Wrong payment sent to Stripe.
Post by: MB Themes on December 18, 2019, 02:03:29 PM
All currencies are delivered as times 100 (so cents are whole numbers). JPY not

In file:
oc-content/plugins/osclass_pay/payments/stripe/StripePayment.php

Find:
Code: [Select]
'amount' => round($amount*100),
replace it with:
Code: [Select]
'amount' => round(osp_currency() == 'JPY' ? $amount : $amount*100),
Title: Re: Wrong payment sent to Stripe.
Post by: HappyTiger on December 18, 2019, 06:02:19 PM
Thank you.

Correct payment sent to Stripe, but nothing is showing on "Item Orders".
"Payment Logs" and "Payments" is in a similar situation as "Item Orders".
   
Title: Re: Wrong payment sent to Stripe.
Post by: MB Themes on December 18, 2019, 06:42:05 PM
Not quite getting you
Title: Re: Wrong payment sent to Stripe.
Post by: HappyTiger on December 18, 2019, 07:30:43 PM
Please look at images or Attached image files.

ITEM ORDERS
(http://netakiri.net//uploader/src/up0633.png)

Payment Logs
(http://netakiri.net//uploader/src/up0632.png)

Payments
(http://netakiri.net//uploader/src/up0631.png)
Title: Re: Wrong payment sent to Stripe.
Post by: MB Themes on December 18, 2019, 08:02:57 PM
How is admin payment related to stripe?
Title: Re: Wrong payment sent to Stripe.
Post by: HappyTiger on December 19, 2019, 11:43:21 AM
I'm sorry.
Something was wrong when I copy-pasted.

I appreciate your support.
Title: Re: Wrong payment sent to Stripe.
Post by: MB Themes on December 19, 2019, 02:24:19 PM
Welcome