• Resolved dingdang

    (@dingdang)


    What is the best way to handle the situation for a multilingual/multicurrency site where at the shopping cart (for example using WPML) the total can change it’s currency?

    Currently the plugin sends just the amount in whatever currency it is at the site to Braintree where the currency is different.

    Same works fine with the default PayPal plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    You can add additional currencies from within the Braintree(Credit Card) settings page. Under the Merchant Account IDs section you can add additional Merchant Account IDs which are linked to specific currencies.

    Thread Starter dingdang

    (@dingdang)

    Thanks. The plugin however need some way to handle the situations where the currency is not supported (like paypal plugin does) as by default it sends the request to the default one with just the number value of the other currency.
    Is there any hook that could be used to recalculate the amount*currency to the default currency in such cases?
    To give an example – if the amount is 100GBP and let say GBP is not supported by braintree but the default there is EUR, the payment will go trough but for 100EUR (not 100GBP). What we need is transparently recalculate 100GBP to EUR and send the correct amount in EUR in the braintree request.

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @dingdang – Personally, I would recommend not offering your customers the ability to switch the transacted currency if you cannot actually receive transactions in that currency.

    If you just need to display costs in different currencies(but not change the currency that is actually used), you could use a currency converter widget/plugin:

    https://woocommerce.com/products/currency-converter-widget/

    Otherwise, this would require a customization to the plugin.

    Thread Starter dingdang

    (@dingdang)

    We have managed to hide it as an option when the currency is not supported trough hooks at woocommerce and wpml/woo/multilingual plugins.
    It will be a good option however, to have automatically and transparently not to hide it but to convert unsupported currencies to some predefined default one and only after that to send the request to braintree.

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hello again,

    Good to hear that you found a solution. I haven’t seen anyone else request this before so it might be too much of an edge-case scenario for the plugin to adopt.

    You could post in the GitHub repository if you think it would make a nice enhancement or submit a pull request with your changes.

    https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Currency problem’ is closed to new replies.