• Resolved pbosakov

    (@pbosakov)


    Hello,

    I am running into a problem with processing PayPal orders in a different currency.

    Here are some details about my setup.

    Plugins installed:
    – WooCommerce 3.8.1
    – WooCommerce Multilingual 4.7.6

    The default store currency is EUR.
    The currency settings are as follows:

    WPML language:  Enabled currencies:  Default currency:
    Bulgarian       EUR, BGN              BGN
    English         EUR                   EUR

    The enabled payment gateways are:
    1. Direct bank transfer
    2. PayPal (standard)

    PayPal does not support BGN as a currency, so in the Multi-currency settings I have configured it to process BGN orders in EUR.

    When testing, on the checkout page, it correctly shows a notice that the order will be processed in EUR:

    “Please note that the payment will be made in EUR. €XX.XX will be debited from your account.”

    However, when the order is sent to PayPal, the amount is NOT converted to Euro. BGN is passed as the currency code, without taking the custom settings into account. PayPal, therefore, returns an error message as BGN is not a supported currency.

    I hope someone can help! Let me know if I can provide any additional useful information.

    • This topic was modified 4 years, 10 months ago by pbosakov. Reason: fixed incomplete title
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello!
    We are working on fixing this.
    Can you check if you go to woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-currencies-payment-gateways.php
    and add this:
    add_action( 'init', array( $this, 'init_gateways' ) );
    In the add_hook() method

    Thread Starter pbosakov

    (@pbosakov)

    Thank you! This patch works perfectly, at least on my setup.

    Thread Starter pbosakov

    (@pbosakov)

    Sorry, I need to reopen this topic just to let you know that I noticed another glitch after applying your suggested patch. When converting currencies for PayPal, the full price seems to be applied even if a product is on sale.

    Example: a product variation is set to be reduced from 420 BGN to 360 BGN until a certain date. The cart and checkout page show the correct reduced price (360 BGN). After converting currencies though, the amount billed is 214.74 € which is the equivalent of the full price (reduced price should be 184.07 €).

    Just letting you know so you can consider this in your testing. I hope you can let me know if a fix for this gets released.

    Hello,
    have you tested this with new 4.7.7 version?

    Can you please update me here with results?

    Thread Starter pbosakov

    (@pbosakov)

    Hello, I tested it with version 4.7.7 and it works like a charm. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom PayPal currency not being applied’ is closed to new replies.