Zen Cart Logo
Forums / PayPal Express Checkout support / delivery country error

delivery country error

Views: 6,934

Results 1 to 15 of 15
1 Jan 2007, 2:55 PM
#1
woza avatar

woza

New Zenner

Join Date:
Feb 2005
Location:
West Yorkshire, UK
Posts:
53
Plugin Contributions:
0

delivery country error

I've upgrade one of my sites form 1.3.5-1.3.7 (via 1.3.6) and all seems ok apart from the Paypal express checkout.

I've set it all up with the api stuff and the button shows up in the cart and when you click on it, it seems to be working then you select to review the order, which sends you back to the site with the "checkout with paypal" select you then click the continue button to go to the order confirm page, but when you click to confirm it sends you back to the delivery info page.
When you continue through it again, it sends you back from the confirmation page to delivery page again.

I turned on the debug and this was the only thing that looks dodgy:

Response: array (
'TIMESTAMP' => '2007-01-01T14:41:05Z',
'CORRELATIONID' => '949c4542c5c30',
'ACK' => 'Failure',
'L_ERRORCODE0' => '10725',
'L_SHORTMESSAGE0' => 'Shipping Address Country Error',
'L_LONGMESSAGE0' => 'There was an error in the Shipping Address Country field',
'L_SEVERITYCODE0' => 'Error',
'VERSION' => '2.300000',
'BUILD' => '1.0006',
)

Further up the log is this: 'SHIPTOCOUNTRY' => 'UK',

A different log give this:
[messageToStack] => Array
(
[0] => Array
(
[class] => checkout_shipping
[text] => An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. (10725)
[type] => error
)

    )

)

Any help would be great.

Thanks

1 Jan 2007, 10:06 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: delivery country error

My understanding from the upgrade document(s) is:
PayPal Express Checkout
(ONLY supports North American PayPal accounts at the present time (ie: UK merchants not yet supported))

2 Jan 2007, 5:20 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: delivery country error

There shouldn't be any problem shipping "TO" the U.K.
The limitation is only where the PayPal account is a UK-domiciled account ... which "could" be the case given the URL of the poster ... It would be handy to have confirmation about the account.

'L_ERRORCODE0' => '10725',
'L_SHORTMESSAGE0' => 'Shipping Address Country Error',
'L_LONGMESSAGE0' => 'There was an error in the Shipping Address Country field',

Further up the log is this: 'SHIPTOCOUNTRY' => 'UK',

Of course, this would appear to be correct and thus the error message is confusing.
Strangely enough, I've done many tests using addresses with "UK" as the country choice and they all went through fine, both "live" and "sandbox".

Do you have any restrictions in your PayPal profile preventing sale to folks in UK?

2 Jan 2007, 9:28 AM
#4
woza avatar

woza

New Zenner

Join Date:
Feb 2005
Location:
West Yorkshire, UK
Posts:
53
Plugin Contributions:
0

Re: delivery country error

It is a UK Paypal account. I'm not aware of any restrictions on the paypal account. I've had a look through and can't see anything on the paypal side that would get in the way.

Has anyone in the UK got this working?

Many thanks

2 Jan 2007, 6:38 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: delivery country error

'L_ERRORCODE0' => '10725',
'L_SHORTMESSAGE0' => 'Shipping Address Country Error',
'L_LONGMESSAGE0' => 'There was an error in the Shipping Address Country field',

Further up the log is this: 'SHIPTOCOUNTRY' => 'UK',The ISO code for United Kingdom is "GB" and not "UK", hence the error.
The default Zen Cart installation uses 'GB' if someone chooses 'United Kingdom' from the list of countries. And PayPal uses the ISO standard as well. I'm not sure how you ended up sending 'UK' ...

2 Jan 2007, 6:55 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: delivery country error

I must also add a clarification.

The upgrade documentation mistakenly says:> PayPal Express Checkout

(ONLY supports North American PayPal accounts at the present time (ie: UK merchants not yet supported))

In fact, Express Checkout is supported internationally.

The error was a result of the fact that the Website Payments Pro features (currently in development) are not supported outside the U.S. The facts in the documentation got mixed up.
Sorry for the confusion on that part.

2 Jan 2007, 8:06 PM
#7
woza avatar

woza

New Zenner

Join Date:
Feb 2005
Location:
West Yorkshire, UK
Posts:
53
Plugin Contributions:
0

Re: delivery country error

OK changing the country code to GB gets me a little bit further:

  1. add something to cart
  2. click the checkout with paypal button
  3. login to paypal
  4. click review order
  5. (returned to site) review order and click confirm
  6. you are sent to the delivery page, click next
  7. on payment info page, click continue
  8. review order (again) and click confirm
  9. Login to paypal (again)
  10. Click pay now button
  11. I'm sent back to delivery info page
  12. repeat steps 7 through 12 again and again and you get the idea.

After looking through many log emails I found this:

Redirecting to checkout_payment - Stack: checkout_payment
Message: We were not able to process your order. Please try again, select an alternate payment method, or contact the store owner for assistance.
(Invalid HTTP Header)
Session Data: Array
(
[customers_host_address] =>
---.cable.ubr11.brad.blueyonder.co.uk
[cartID] =>
[cart] => shoppingcart Object
(
[observers] => Array
(
)

        [contents] => Array
            (
                [956] => Array
                    (
                        [qty] => 1
                    )

            )

        [total] => 7.99
        [weight] => 0
        [cartID] => 
        [content_type] => physical
        [free_shipping_item] => 0
        [free_shipping_weight] => 0
        [free_shipping_price] => 0
    )

[navigation] => navigationhistory Object
    (
        [observers] => Array
            (
            )

        [path] => Array
            (
                [0] => Array
                    (
                        [page] => logoff
                        [mode] => NONSSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

                [1] => Array
                    (
                        [page] => index
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [type] => ec
                                [token] => EC-2C051271A8191213T
                                [PayerID] => JSM2VUJD94DH6
                            )

                        [post] => Array
                            (
                            )

                    )

                [2] => Array
                    (
                        [page] => checkout_payment
                        [mode] => NONSSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

                [3] => Array
                    (
                        [page] => checkout_confirmation
                        [mode] => NONSSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

                [4] => Array
                    (
                        [page] => checkout_process
                        [mode] => NONSSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
                [page] => index
                [mode] => NONSSL
                [get] => Array
                    (
                        [type] => ec
                        [token] => EC-5B391287S2313291Y
                        [PayerID] => JSM2VUJD94DH6
                    )

                [post] => Array
                    (
                    )

            )

    )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => GBP
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => **.**.***.**
[new_products_id_in_cart] => 956
[valid_to_checkout] => 1
[cart_errors] => 
[payment] => paypalwpp
[messageToStack] => Array
    (
        [0] => Array
            (
                [class] => checkout_payment
                [text] => We were not able to process your order. Please try again, select an alternate payment method, or contact the store owner for assistance. (Invalid HTTP Header)
                [type] => error
            )

    )

[customer_guest_id] => 147
[customer_id] => 147
[customer_default_address_id] => 172
[customer_first_name] => Warren
[customer_country_id] => 223
[customer_zone_id] => 0
[sendto] => 172
[billto] => 172
[shipping] => Array
    (
        [id] => item_item
        [title] => Per Item (Best Way)
        [cost] => 0
        [module] => item
    )

[comments] =>

)

I also found this which says the severitycode is ERROR:

https://api-3t.paypal.com/nvp
live
Request Headers: array (
0 => 'Content-Type: text/namevalue',
1 => 'X-VPS-Timeout: 45',
2 => 'X-VPS-VIT-Client-Type: PHP/cURL',
3 => 'X-VPS-VIT-Integration-Product: PHP::Zen Cart WPP-NVP',
4 => 'X-VPS-VIT-Integration-Version: 0.1',
)

Request Parameters: array (
'' => NULL,
)

Response: array (
'TIMESTAMP' => '2007-01-02T19:57:05Z',
'CORRELATIONID' => 'NotSet',
'L_ERRORCODE0' => '10001',
'L_SHORTMESSAGE0' => 'Invalid HTTP Header',
'L_LONGMESSAGE0' => 'PPBaseException: CONTENT_LENGTH must be >0 Backtrace:
8394a09 8394999 83af49a 81ad550 8059015 40b119cb 8056341',
'L_SEVERITYCODE0' => 'Error',
'BUILD' => '1.0006',
)

It seems to do different random things depending on what settings I change in the module.

I only have one country:
United Kingdom GB GBR
No Zones, plus I've turned off the coupons and discounts for now, but will want to turn them back on.

Cheers

2 Jan 2007, 8:18 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: delivery country error

Can you set up a fresh v1.3.7 site on your server, using demo products, and configure the PayPal Express Checkout module the very same as on your main site, and then test to see if the same thing happens?

I suspect something was missed in upgrading.
Either that or there is some configuration setting in your live site that is causing a conflict somewhere ... and applying changes progressively to the new install will help isolate the cause of the problem.

7 Jan 2007, 10:57 AM
#10
woza avatar

woza

New Zenner

Join Date:
Feb 2005
Location:
West Yorkshire, UK
Posts:
53
Plugin Contributions:
0

Re: delivery country error

I've upgrade a second site and I get the same problem. at the top of the confirmation page it says:

We were not able to process your order. Please try again, select an alternate payment method, or contact the store owner for assistance. (Invalid HTTP Header)

One of the log files as the same as the other site:

Response: array (
'TIMESTAMP' => '2007-01-07T10:46:12Z',
'CORRELATIONID' => 'NotSet',
'L_ERRORCODE0' => '10001',
'L_SHORTMESSAGE0' => 'Invalid HTTP Header',
'L_LONGMESSAGE0' => 'PPBaseException: CONTENT_LENGTH must be >0 Backtrace: 8394a09 8394999 83af49a 81ad550 8059015 40b119cb 8056341',
'L_SEVERITYCODE0' => 'Error',
'BUILD' => '1.0006',
)

Tried that new paypalwpp.php but no joy.

One log file has this:

'LOCALECODE' => 'US'

Dunno if this has anything to do with it as I'm in the UK (GB). As I said this is the second upgrade so either I'm really crap and got a second upgrade wrong or it's a bug/ setting that's wrong. I've got a new project coming up so I'll see what happens with that.

7 Jan 2007, 11:38 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: delivery country error

Were the Request details the same s before as well ?

It's important to know both the request and the response details from the logs.

I would suggest installing a fresh 1.3.7 as a test... see if it communicates right ... and then do the upgrade steps bit by bit and see when/if it's broken etc.

There's no reason for it not to work in the UK.

7 Jan 2007, 1:33 PM
#12
woza avatar

woza

New Zenner

Join Date:
Feb 2005
Location:
West Yorkshire, UK
Posts:
53
Plugin Contributions:
0

Re: delivery country error

I've done a clean install and it seems to work, but I finding what is wrong with that upgraded sites is bit of a need in a haystack!

I can't spot anything obvious. Could it be a template issue?

ta

7 Jan 2007, 2:22 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: delivery country error

What kinds of customizations have you done?

There are some dependencies in these files ... some major, some minor. Might wanna carefully re-merge these:

/includes/classes/cc_validation.php
/includes/classes/message_stack.php
/includes/classes/order.php
/includes/classes/order_total.php
/includes/classes/payment.php
/includes/classes/shipping.php
/includes/classes/shopping_cart.php
/includes/init_includes/init_customer_auth.php
/includes/init_includes/init_sanitize.php
/includes/init_includes/init_sessions.php
/includes/modules/checkout_process.php
/includes/modules/order_total/ot_gv.php
/includes/modules/pages/checkout_confirmation/header_php.php
/includes/modules/pages/checkout_payment/jscript_main.php
/includes/modules/pages/checkout_shipping/header_php.php
/includes/modules/payment/paypal/paypal_functions.php
/includes/templates/template_default/templates/tpl_checkout_confirmation_default.php
/includes/templates/template_default/templates/tpl_checkout_payment_address_default.php
/includes/templates/template_default/templates/tpl_checkout_payment_default.php
/includes/templates/template_default/templates/tpl_checkout_shipping_address_default.php
/includes/templates/template_default/templates/tpl_checkout_shipping_default.php
/includes/templates/template_default/templates/tpl_checkout_success_default.php
/includes/templates/template_default/templates/tpl_login_default.php
/includes/templates/template_default/templates/tpl_shopping_cart_default.php
/includes/modules/payment/paypalwpp.php
/includes/modules/payment/paypal/paypal_curl.php
/includes/modules/payment/paypal/paypalwpp_admin_notification.php
/includes/modules/payment/paypal/tpl_ec_button.php

There are several admin files changed too, but you weren't getting far enough to know whether that makes a difference or not.

7 Jan 2007, 2:31 PM
#14
woza avatar

woza

New Zenner

Join Date:
Feb 2005
Location:
West Yorkshire, UK
Posts:
53
Plugin Contributions:
0

Re: delivery country error

Cool. I'll re-upload all them files. I'll let you know how I get on

21 Jan 2011, 2:03 PM
#15
logarcia avatar

logarcia

New Zenner

Join Date:
Jan 2011
Posts:
2
Plugin Contributions:
0

Re: delivery country error

Hi everyone, for some reason I have that same problem...im using version 1.3.9 any ideas? Im from Puerto Rico, does that have something??