Page 1 of 1

UK site, paypal error iso-code

Posted: Sat Feb 05, 2022 5:35 am
by RAC
Hello all.

I am getting an error in paypal/express.php.

[01-Feb-2022 09:15:59 Europe/London] PHP Notice: Undefined index: name in /home/**********/public_html/ext/modules/payment/paypal/express.php on line 46
[01-Feb-2022 09:15:59 Europe/London] PHP Notice: Undefined index: iso_code_2 in /home/**********/public_html/ext/modules/payment/paypal/express.php on line 47
[01-Feb-2022 09:15:59 Europe/London] PHP Notice: Undefined index: iso_code_3 in /home/**********/public_html/ext/modules/payment/paypal/express.php on line 48
[01-Feb-2022 09:15:59 Europe/London] PHP Notice: Undefined index: format_id in /home/**********/public_html/ext/modules/payment/paypal/express.php on line 49

Lines 46-49 are :
'country_name' => $country['name'],
'country_iso_code_2' => $country['iso_code_2'],
'country_iso_code_3' => $country['iso_code_3'],
'address_format_id' => $country['format_id'],


Running version 1.0,8,10.

TIA Shaun.

Re: UK site, paypal error iso-code

Posted: Sat Feb 05, 2022 10:47 am
by mhsuffolk
The UK has changed some codes from GB to UK, car number plates for example. Have PayPal changed something?

Re: UK site, paypal error iso-code

Posted: Sat Feb 05, 2022 4:13 pm
by RAC
Thanks for your reply,

After the error I have attempted to change UK to GB and GBR, under location and taxes, and changed the zone to GB, but this has made no difference at all.
Do you know of any files I would need to change?

I have also contacted PayPal but have received no reply so far.

Re: UK site, paypal error iso-code

Posted: Sat Feb 05, 2022 4:23 pm
by mhsuffolk
Is the currency GBP

Re: UK site, paypal error iso-code

Posted: Sun Feb 06, 2022 6:19 am
by RAC
Yes it is.

Thanks.