Forums / Addon Payment Modules / New Malaysian Ringgit (MYR) currency added to paypal

New Malaysian Ringgit (MYR) currency added to paypal

Locked

Views: 4,401

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
15 Dec 2009, 7:47 AM
#1
limying avatar

limying

New Zenner

Join Date:
Jun 2009
Posts:
15
Plugin Contributions:
0

New Malaysian Ringgit (MYR) currency added to paypal

Malaysian Ringgit (MYR) is a new currency recently added to paypal send/request money on top of the existing 22 currencies.

However, I wonder how should I setup in my PayPal IPN - Website Payments Standard to accept MYR ?

In currencies, I added Malaysian Ringgit with code = MYR but on the paypal checkout page, it will automatically be converted to USD.

Any idea whether it should be working or not?

15 Dec 2009, 8:04 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: New Malaysian Ringgit (MYR) currency added to paypal

You have to modify the paypal code in the /modules/payment/folder

Search for

'CAD', 'EUR', 'GBP',

in all paypal related files. (There must be paypal in the name!!!
They are in an array where all currencies accepted by paypal are defined and add 'MYR' to the end of the list.

I remember there are 3 or 4 files where you have to change this.

If you want to update the configuration files as well, replace all occurrences of

$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPALWPP_CURRENCY', 'Selected Currency', 'Which currency should the order be sent to PayPal as? <br />NOTE: if an unsupported currency is sent to PayPal, it will be auto-converted to USD (or GBP if using UK account)<br /><strong>Default: Selected Currency</strong>', '6', '25', 'zen_cfg_select_option(array(\'Selected Currency\', \'Only USD\', \'Only AUD\', \'Only CAD\', \'Only EUR\', \'Only GBP\', \'Only CHF\', \'Only CZK\', \'Only DKK\', \'Only HKD\', \'Only HUF\', \'Only JPY\', \'Only NOK\', \'Only NZD\', \'Only PLN\', \'Only SEK\', \'Only SGD\', \'Only THB\'), ',  now())");

with

$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPALWPP_CURRENCY', 'Selected Currency', 'Which currency should the order be sent to PayPal as? <br />NOTE: if an unsupported currency is sent to PayPal, it will be auto-converted to USD (or GBP if using UK account)<br /><strong>Default: Selected Currency</strong>', '6', '25', 'zen_cfg_select_option(array(\'Selected Currency\', \'Only USD\', \'Only AUD\', \'Only CAD\', \'Only EUR\', \'Only GBP\', \'Only CHF\', \'Only CZK\', \'Only DKK\', \'Only HKD\', \'Only HUF\', \'Only JPY\', \'Only NOK\', \'Only NZD\', \'Only PLN\', \'Only SEK\', \'Only SGD\', \'Only THB\', \'Only MYR\'), ',  now())");

After the update, you have to remove and add the paypal module to update the database.