Forums / Built-in Shipping and Payment Modules / paypal credit card page show wrong country

paypal credit card page show wrong country

Locked

Views: 9,024

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Oct 2007, 3:20 AM
#1
h229229 avatar

h229229

New Zenner

Join Date:
May 2007
Posts:
3
Plugin Contributions:
0

paypal credit card page show wrong country

After directing to the paypal credit card payment page, the country show USA instead of Singapore. I have choose the defauly currency and country in the zen-cart as SG or Singpaore and the log also shows:

[bn] => zencart
[cmd] => _ext-enter
[rm] => 2
[mrb] => R-6C7952342H795591R
[pal] => 9E82WJBKKGPLQ
[page_style] => Primary
[lc] => US
[custom] => zenid=4dd6c0776070bc992980d801f0218ff52
[charset] => iso-8859-1
[return] => http://www./index.php?main_page=checkout_process&referer=paypal
[cancel_return] => http://www./index.php?main_page=checkout_payment
[shopping_url] => http://www.
/index.php?main_page=shopping_cart
[notify_url] => http://
*****
[redirect_cmd] => _xclick
[business] => **************
[first_name] => ****
[last_name] => ********
[address1] => ****************
[city] => Singapore
[state] => 0
[zip] => 545118
[country] => SG
[email] => ***********************
[H_PhoneNumber] => 643434343
[night_phone_b] => 643434343
[day_phone_b] => 643434343
[no_shipping] => 1
[currency_code] => SGD
[paypal_order_id] =>
[item_name] => L************************
[item_number] => Store Receipt
[upload] => 1
[amount] => 0.20

Is it a paypal issue?

Regards:blush:

5 Oct 2007, 4:54 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: paypal credit card page show wrong country

You'll need to log a ticket with PayPal's technical support department:
http://www.paypal.com/mts
The correct category is: Website Payments Standard, and PayPal Live Site.

SG is the correct country code according to ISO standards and according to PayPal's documentation. Thus, it must be a bug on their end.

Tell them to refer to two other existing tickets as well: 070827-000325, 070831-000179

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Oct 2007, 1:51 AM
#3
h229229 avatar

h229229

New Zenner

Join Date:
May 2007
Posts:
3
Plugin Contributions:
0

Re: paypal credit card page show wrong country

This is Pay-pal helpdesk reply -

I recommend using "lc" variable. It allows to set the default country for the checkout process. For example:
<input type="hidden" name="lc" value="SG">

For complete list of variables, please visit: https://www.paypal.com/IntegrationCenter/ic_std-variable-reference.html

How to use lc variable??

8 Oct 2007, 4:25 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: paypal credit card page show wrong country

Well -- they've changed their specifications again. They used to only offer 7 choices. Now apparently they offer lots more ... well, they will once they get the bug fixed.

You can set the LC variable to match your customer's address country-code by editing your /includes/modules/payment/paypal.php file, around line 169, by replacing this code:// Determine locale for paypal login page -- (determines language display content setting) $lang_code = 'US'; $storeISO = zen_get_countries(STORE_COUNTRY, true); if (in_array(strtoupper($storeISO['countries_iso_code_2']), array('US', 'AU', 'DE', 'FR', 'IT', 'GB', 'ES'))) { $lang_code = strtoupper($storeISO['countries_iso_code_2']); } elseif (in_array(strtoupper($_SESSION['languages_code']), array('EN', 'US', 'AU', 'DE', 'FR', 'IT', 'GB', 'ES'))) { $lang_code = $_SESSION['languages_code']; if (strtoupper($lang_code) == 'EN') $lang_code = 'US'; }... with just this one line:```
$lang_code = $order->customer['country']['iso_code_2'];


Then, after they fix their current bug, it should work ... in theory.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Oct 2007, 3:03 PM
#5
h229229 avatar

h229229

New Zenner

Join Date:
May 2007
Posts:
3
Plugin Contributions:
0

Re: paypal credit card page show wrong country

PayPal support reply after I reported to them the country error still exist even I modify the lc.


Thank you for the update.

We have investigated the issue - this is a system issue we will be resolving now, the configuration of your store is correct. Our engineers are currently working on resolving it, however, no timeframe can presently be specified.

Thank you for your patience and help in locating the issue.


27 Feb 2008, 9:07 AM
#6
jinson avatar

jinson

New Zenner

Join Date:
Feb 2008
Posts:
4
Plugin Contributions:
0

Re: paypal credit card page show wrong country

Umm, so has this issue been resolved?

13 Jan 2010, 2:08 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: paypal credit card page show wrong country

As far as "locale" settings are concerned, according to PayPal, allowed values are officially still only the following:
'US', 'AU', 'DE', 'FR', 'IT', 'GB', 'ES', 'AT', 'BE', 'CA', 'CH', 'CN', 'NL', 'PL'

However, that may or may not be the problem which the original poster was really facing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Apr 2010, 6:27 AM
#9
akarui avatar

akarui

New Zenner

Join Date:
Mar 2010
Posts:
17
Plugin Contributions:
0

Re: paypal credit card page show wrong country

After reading this thread I have try to change the modules/payment/paypal.php file:
'charset' => utf-8
$lang_code = $order->customer['country']['iso_code_2']; (added)
which is the DrByte suggestion as Japan 'JP' is not in the list of allowed values for 'lc'.

Without any success. The Japanese characters of customer name and address (code utf-8) don't display normally on the Paypal credit card page and the language is still English...
I don't know what to try next. Do you have any suggestion?
(I use last version of Zen Cart)

7 Apr 2010, 4:49 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: paypal credit card page show wrong country

In your PayPal account, under Profile, under Language options, have you set it up to tell PayPal to use UTF-8 ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Apr 2010, 4:02 AM
#11
akarui avatar

akarui

New Zenner

Join Date:
Mar 2010
Posts:
17
Plugin Contributions:
0

Re: paypal credit card page show wrong country

Thank you very much for your answer DrByte.
Yes my Paypal account is also set to UTF-8.
There is an option on the top right of the Paypal credit card page where Japanese can be choosen. Paypal seems to use cookies and not the browser language. If there is no cookie English is display. Coming on the second time the Japanese version is displayed but I have still an issue with the characters on the Japanese name and address of the customer on both versions :(