Stripe Gateway - NZD currency

Hi there,

I just setup my Stripe account and when I wanted to setup the gateway options inside Pro Sites, I noticed there is no NZD currency.

Can you guys update this?
Cheers,

Ronald

  • Sajid

    Hello Dutchman,
    Hope you are doing good today

    I see NZD currency is available in Pro Sites -> Settings -> Currency Settings ad currency dropdown. Did you selected that and did not worked for you ?

    If no, then you have to edit the following file and add your currency manually there. Please follow the steps below to add currency.

    1. First of all, please take backup of your website using a backup and restore plugin like Snapshot Pro.

    2. Connect to your website server via FTP protocol using free software like FileZilla or FileManger of cPanel.

    3. Navigate to following location:
    wp-content/plugins/pro-sites/pro-sites-files/gateways/

    4. Download gateway-stripe.php file and open up with a text/code editor like Notepad ++ or Sublime.

    5. Find the following code in this file, nearly line number 3236 - 3249:

    $currencies   = array(
    								"AUD" => 'AUD - Australian Dollar',
    								"CAD" => 'CAD - Canadian Dollar',
    								"EUR" => 'EUR - Euro',
    								"GBP" => 'GBP - Pounds Sterling',
    								"USD" => 'USD - U.S. Dollar',
    								"DKK" => 'DKK - Danish Krone',
    								"NOK" => 'NOK - Norwegian Krone',
    								"SEK" => 'SEK - Swedish Krona',
    								"JPY" => 'JPY - Japanese Yen (Private BETA)',
    								"MXN" => 'MXN - Mexican Peso (Private BETA)',
    								"SGD" => 'SGD - Singapore Dollar (Private BETA)',
    								"CHF" => 'CHF - Swiss Franc (Private BETA)',
    							);

    6. Replace it with following code (note the NZD currency at the end):

    $currencies   = array(
    								"AUD" => 'AUD - Australian Dollar',
    								"CAD" => 'CAD - Canadian Dollar',
    								"EUR" => 'EUR - Euro',
    								"GBP" => 'GBP - Pounds Sterling',
    								"USD" => 'USD - U.S. Dollar',
    								"DKK" => 'DKK - Danish Krone',
    								"NOK" => 'NOK - Norwegian Krone',
    								"SEK" => 'SEK - Swedish Krona',
    								"JPY" => 'JPY - Japanese Yen (Private BETA)',
    								"MXN" => 'MXN - Mexican Peso (Private BETA)',
    								"SGD" => 'SGD - Singapore Dollar (Private BETA)',
    								"CHF" => 'CHF - Swiss Franc (Private BETA)',
    								"NZD" => 'NZD¹ - New Zealand Dollar - $',
    							);

    7. Save changes and upload back to server by replacing the existing one.

    Please note that, keep this file somewhere before updating the plugin next and apply the changes back.

    Take care and have a nice day

    Best Regards,
    Sajid - WPMU DEV Support

  • Sajid

    Hello Dutchman,
    Hope you are doing good today

    Yes, I got your question and I am not exactly sure why it is not in the gateway settings. May be a technical difficulty or any gateway limitation.

    I will bring it to our developers attention though and if its obvious then we would definitely add this into the plugin core before next update.

    Take care and have a nice day

    Best Regards,
    Sajid - WPMU DEV Support