Home Forums Stripe Commissions & Gateway Support Zero-decimal currencies?

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #25288
    Michael Bobrove
    Participant

    Hello,

    Thank you for the great plugin.

    I’ve read that you now support all currencies that Stripe supports. But are there any setting changes required for zero-decimal currencies such as these in the page below?
    https://support.stripe.com/questions/which-zero-decimal-currencies-does-stripe-support

    We use JPY(Japanese Yen) for our shop and your plugin takes care of the payment without any errors. When Stripe invoices the customers, however, it adds “00” at the end of the payment amounts.

    IE. Buy 600yen product -> Get charged for 60,000yen(big difference!)

    I’m guessing… but is that because you do “Payment amount * 100” to process other currencies with decimal places correctly? If so, is there anything I can do to be able to send proper payment amounts in JPY?

    Thank you,
    Emu

    #26090
    WC Vendors Support
    Participant

    Hi Emu,

    On line #266 of: /classes/class-wc-gateway-stripe.php

    data-amount="<?php echo $woocommerce->cart->total * 100; ?>"

    Change to:

    data-amount="<?php echo $woocommerce->cart->total; ?>"

    and that should take care of it!

    #26284
    Michael Bobrove
    Participant

    Thank you!

    #26898
    Michael Bobrove
    Participant

    Sorry to bother you again.. but it doesn’t seem to fix the problem. Any other places I need to change??

    Emu

    #26986
    WC Vendors Support
    Participant

    Hi Emu,

    That’s the only place it’s set. Perhaps there is a Stripe.com setting somewhere for this as well?

    #27059
    Michael Bobrove
    Participant

    Hi Ben,

    Thank you for your reply.

    I don’t think Stripe requires any setting for this.

    I am pretty sure because my colleague just experienced the same exact problem with these guys and they fixed it:
    http://www.lodgify.com

    When they did, they didn’t need him to modify any Stripe.com settings.

    (Our lodgify page: http://mountfuji-resorts.lodgify.com/)

    Are you sure I don’t need to take out any other * 100 in your file? I still see them in such lines as #430, #431, or #449. I just can’t tell what they mean as I’m not a programmer.

    Could you please take a deeper look into this issue? We really need this to work.

    Thank you,
    Emu

    #27060
    WC Vendors Support
    Participant

    Hi Emu,

    Thanks for finding my error. I do believe you to be correct in removing the other (3) instances of *100. Sorry I missed that entirely!

    #27204
    Michael Bobrove
    Participant

    Hi Ben,

    I got it figured out thanks.

    The commission rate we set for each vendor doesn’t work with this plugin though, does it?

    The one we set in the user-edit screen for admins?
    https://gyazo.com/1db0e60dd500a6f3e3d6b5316926e631

    Stripe plugin only recognizes the rate we put in the WC Vendor setting screen.
    https://gyazo.com/d1de594e20d60403c3a1d1866e85b078

    #27264
    WC Vendors Support
    Participant

    It should look at the product first, if no commission rate on a product is set, it checks the user account second, if no rate on the user account is set, it goes to the global rate.

    #27853
    Michael Bobrove
    Participant

    Hmm, the rate on user account page is not working. Maybe just me.

    But the product one seems to work fine, so I can live with it.

    Thank you very much for your help!

    Emu

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Stripe Commissions & Gateway Support’ is closed to new topics and replies.