• Resolved Tanmoy Biswas

    (@wcblogs87)


    HI,

    We would like to use the Payfast gateway.
    The problem is that our main store currency is USD, and when we try to enable the Payfast gateway plugin, we get the error message:

    Gateway Disabled Choose South African Rands as your store currency in General Settings to enable the PayFast Gateway.

    We need our main store currency to remain USD. Is it possible to use Payfast for WooCommerce?

    we used this plugin: https://www.ads-software.com/plugins/woocommerce-payfast-gateway

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rafy a11n

    (@nawaz0705)

    Hi @wcblogs87

    Thank you for reaching out!

    Using the PayFast Payment Gateway you can accept payment from any country, but it is required to use South African rand (ZAR) as the store currency.

    You can check the documentation here: https://woocommerce.com/document/payfast-payment-gateway/

    Thank you.

    • This reply was modified 2 years, 5 months ago by Rafy a11n.
    Thread Starter Tanmoy Biswas

    (@wcblogs87)

    without South African currency, isn’t possible?

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @wcblogs87.

    without South African currency, isn’t possible?

    By default, no — there is no way around this as the currency limitation is imposed by the gateway companies themselves. However, you technically can use the woocommerce_gateway_payfast_available_currencies filter in the includes/class-wc-gateway-payfast.php file for Payfast to pass the additional currency in the array. Something along the lines of

    $this->available_currencies = (array)apply_filters('woocommerce_gateway_payfast_available_currencies', array( 'ZAR', 'USD' ) );

    Of course, I cannot guarantee that it would work, nor can I provide the exact code or code changes, but if you do want to pursue this and need further help, then you may want to seek help from a developer.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce PayFast Gateway’ is closed to new replies.