Support

Home Forums Event Espresso Premium Order amount multiplied by 100

Order amount multiplied by 100

Posted: December 25, 2017 at 2:56 am


kayme

December 25, 2017 at 2:56 am

Hi,

We have setup EventEspresso Ver # 4.9.43.p to manage ticketing of our events. The current setup has country set to “Japan” with “Currency Decimal Places” set to 0 and payments are set to be accepted in “Japanese Yen” and will be processed via EE Stripe plugin Ver # 1.1.0.p as setup on our server.

All is working till the payment popup is displayed. The total order amount is multiplied by 100 and the same is deducted from the card as entered by the user.

Have tried multiple options but I’m not sure what to do stop order amount being multiplied by 100. Is this something to fix in EE or in Stripe?

Thanks


Josh

  • Support Staff

December 26, 2017 at 11:53 am

Hi there,

This is actually an issue with the current Stripe gateway (version 1.1.0).

Future versions of the Stripe gateway will be able to support what Stripe refers to as “zero-decimal currencies”.

In the meantime, you can download and install this branch of the Stripe gateway that includes support for Japanese Yen:

https://github.com/eventespresso/eea-stripe-gateway/archive/BUG-11042-zero-decimal-currencies.zip

You download the above, remove the Stripe add-on from your site, and replace with the plugin linked to above.


kayme

December 27, 2017 at 2:26 am

Hi,

Based on your inputs, I have removed my current Stripe plugin and installed the one as recommended by you, having version number 1.0.16.rc.002

When tested using the new Stripe plugin, it seems that the updated plugin has not made any changes in the way the amount is shown to end user on payment screen.

The amount is still multiplied by 100 and the same is charged on the card as entered by the user.

Looking forward for your inputs.

Thanks


Josh

  • Support Staff

December 27, 2017 at 10:02 am

I have the same branch loaded up on a testing site and I’m not seeing the issue you reported in the last reply:

https://slack-files.com/T02SY781D-F8KR596UD-8627d563b4

May I ask can you try clearing your browser’s cache? The reason I ask is because this branch of the Stripe gateway includes some changes to the JavaScript file and your browser may be loading the older copy of the JavaScript file used by the Stripe gateway.


kayme

December 27, 2017 at 11:49 pm

Hi,

I had the same thoughts as you & had already cleared browser cache prior to testing the new branch. Somehow the result is the same as earlier.

The following URL’s will give you an idea about my issue.

Payment Page:
https://drive.google.com/file/d/1azdppNT_WN0rukkVX-9M8SNUxix9H2eD/view?usp=sharing

EE Country Settings:
https://drive.google.com/file/d/1RsPuC7prjr9g9AaVY35GGXD0_rW9t7uI/view?usp=sharing

Looking forward for your inputs.

Thanks


Josh

  • Support Staff

December 28, 2017 at 9:56 am

Hi there,

I’m afraid the screenshots do not give me any further ideas. I can advise to make sure you have the current version of Event Espresso 4 activated, and you can step through this troubleshooting guide to rule out a plugin conflict:

https://eventespresso.com/wiki/troubleshooting-checklist/


kayme

January 2, 2018 at 2:46 am

Hello Josh,

A Happy New Year to you.

Based on your last input, I have followed the steps to identify the source of the bug.

Given below is the current setup that I have on my local Linux server. All other plugins other then the ones listed below are “Deactivated”.

Theme – Twenty Seventeen Version: 1.4
WordPress – Version 4.9.1
WooCommerce – Version 3.2.6
Event Espresso – 4.9.53.p
Event Espresso – People Addon (EE 4.5+) – Version 1.0.7.p
Event Espresso – Stripe Gateway (EE 4.6.0+) – Version 1.0.16.rc.002
Event Espresso – Ticketing (EE 4+) – Version 1.0.6.p
Event Espresso – WP Users (EE4.6+) – Version 2.0.14.p

The following image still show amount to be charged multiplied by 100.

https://drive.google.com/file/d/1oxnD_sDyxzQ0sgLjTY63bb_gOVpHKGB0/view?usp=sharing

Tested multiple times by clearing all browser data, but every time result is same. I have no idea on how to resolve this.

Thanks


Josh

  • Support Staff

January 2, 2018 at 11:14 am

May I ask are there any Stripe gateways activated for the WooCommerce plugin?


kayme

January 3, 2018 at 3:20 am

Hi,

There are no Stripe gateways activated for WooCommerce plugin. Let me know if you need any further details regarding the current setup.

Thanks


Tony

  • Support Staff

January 3, 2018 at 4:55 am

Hmm, strange.

I setup the version of Stripe that Josh provided on a test site and didn’t run into any issues – http://take.ms/lVJURJ

Do you have an active event I can run a test registration on?


kayme

January 9, 2018 at 1:21 am

Hello,

As requested, I have setup a following events on which can used for test registrations.

http://aspiringpanda.com/dev-projects/kaymeclub-ap/events/kay-me-test-event-1/

http://aspiringpanda.com/dev-projects/kaymeclub-ap/events/kay-me-test-event-1-2/

If you need any further information or WordPress backend access do let me know.

Thanks


Tony

  • Support Staff

January 9, 2018 at 2:53 am

The version of Stripe used on your site does not have the changes Josh made.

Your site – http://take.ms/SadZV

My site using Josh’s branch – http://take.ms/c4jjy

(There are more changes than that, but it shows the ‘wrong’ version is in use)

However, changes have now been made to the above branch that require an updated version of Event Espresso core as we are adding support for this scenario into core so that branch will no longer work on your site.

If you’d like to install the version of the add-on that will work right now you can use this: http://take.ms/YOriE

Or if you wait for the next release of both EE core and Stripe it will likely support your currency.


kayme

January 9, 2018 at 3:32 am

Thank you for the quick response.

It’s strange to know that my Stripe version is different then yours, as I had downloaded and installed from URL as provided by Josh.

Anyway I have installed updated Stripe version from the URL and it’s working as expected.

Can you give me ETA for the next release of EE core and Stripe.

Thanks


Tony

  • Support Staff

January 9, 2018 at 5:18 am

Currently, the changes made to the Stripe add-on are under review, once accepted they’ll go through testing to confirm they work as expected and no new bugs have been introduced so it depends on how testing goes.

The support post ‘Order amount multiplied by 100’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso