*

HappyTiger

  • **
  • 9 posts
Wrong payment sent to Stripe.
« 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) is ¥10,000.
However, payment amount of stripe screen is ¥1,000,000.

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

   
« Last Edit: December 18, 2019, 01:26:44 PM by HappyTiger »

Marked as best answer by HappyTiger on December 19, 2019, 11:43:30 AM
*

MB Themes

Re: Wrong payment sent to Stripe.
« Reply #1 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),
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

HappyTiger

  • **
  • 9 posts
Re: Wrong payment sent to Stripe.
« Reply #2 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".
   

*

MB Themes

Re: Wrong payment sent to Stripe.
« Reply #3 on: December 18, 2019, 06:42:05 PM »
Not quite getting you
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

HappyTiger

  • **
  • 9 posts
Re: Wrong payment sent to Stripe.
« Reply #4 on: December 18, 2019, 07:30:43 PM »
Please look at images or Attached image files.

ITEM ORDERS


Payment Logs


Payments


*

MB Themes

Re: Wrong payment sent to Stripe.
« Reply #5 on: December 18, 2019, 08:02:57 PM »
How is admin payment related to stripe?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

HappyTiger

  • **
  • 9 posts
Re: Wrong payment sent to Stripe.
« Reply #6 on: December 19, 2019, 11:43:21 AM »
I'm sorry.
Something was wrong when I copy-pasted.

I appreciate your support.

*

MB Themes

Re: Wrong payment sent to Stripe.
« Reply #7 on: December 19, 2019, 02:24:19 PM »
Welcome
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots