Forums / PayPal Express Checkout support / "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

"(7) 7 - Field format error: 10731-The field Shipping Address Country is required

Locked

Views: 32,164

Results 61 to 74 of 74
This thread is locked. New replies are disabled.
2 Feb 2008, 11:58 PM
#61
devices avatar

devices

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

"(7) 7 - Field format error: 10731-The field Shipping Address Country is required

Thank you very much DrByte. :D

I should never need to change from Uk mode. Thanks again.

Regards

Dave.

beauty is in the eye of the beer holder

7 Feb 2008, 4:50 PM
#62
drbyte avatar

drbyte

Sensei

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

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

I think the safer way, to make it mode-independent, would be to change the line to the following instead:```
'ship_country_name' => (isset($response['SHIPTOCOUNTRY']) ? urldecode($response['SHIPTOCOUNTRY']) : urldecode($response['SHIPTOCOUNTRYNAME'])));

.
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 Feb 2008, 11:12 AM
#63
hedgepig avatar

hedgepig

New Zenner

Join Date:
Oct 2006
Posts:
80
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

Hi,

Just wanted to say that we finally brought the new 1.3.8a version live late last night and it seems to be performing beautifully with customers credit cards being processed and all order details as they should be! Thanks to everyone for their help in solving the problem :clap:

Regards

Lyn
Hedgepig

12 Feb 2008, 7:40 PM
#64
devices avatar

devices

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

DrByte:

I think the safer way, to make it mode-independent, would be to change the line to the following instead:```
'ship_country_name' => (isset($response['SHIPTOCOUNTRY']) ? urldecode($response['SHIPTOCOUNTRY']) : urldecode($response['SHIPTOCOUNTRYNAME'])));


I have changed it and it seems fine :D

Thank you very much.

> **hedgepig:**
>
> Hi,
>  
> Just wanted to say that we finally brought the new 1.3.8a version live late last night and it seems to be performing beautifully with customers credit cards being processed and all order details as they should be!  Thanks to everyone for their help in solving the problem :clap:
>  
> Regards
>  
> Lyn
> Hedgepig

Good news. I hope it all goes well. :D

Regards

Dave.

beauty is in the eye of the beer holder

18 Aug 2008, 10:20 PM
#65
centec2b avatar

centec2b

New Zenner

Join Date:
May 2008
Posts:
52
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

hedgepig:

Anyone know of anything happening with this yet? I presume every Uk user is going to be having this problem - that has to make it pretty high priority?

Hedgepig, Fuzion and Devices and not forgetting DrByte - I just wanted to say thank you for the effort you put into sorting this out - I am bedding in a new Zen cart and this problem surfaced tonight and after a so and so of a day it was fantastic to find this solution

Thank you

Centec2b

17 Jan 2009, 12:36 PM
#66
dinnages avatar

dinnages

Zen Follower

Join Date:
May 2007
Location:
Brighton/Hove/Sussex
Posts:
146
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

I have looked & found two of these files but neither have enough lines to find 1825, so Im a bit lost as to where to find this exact line to change.
In the better version mentioned by DrByte Its referring to the same location I guess. Not wanting to mess with a such an important php file unless its the right bit.
Im on 1.3.7 & yet to upgrade to the slightly different 1.3.8 version mentioned. Lot of backup again before I do this, while little tinkering is less work on templates.
Does the 1.3.8 upgrade avoid all this error with country codes. Ive changed the chunk within the other php file.
Just this little line struggling to locate.
Not yet made much using my cart but progressing slowly.
Gordon

Devices:

After searching the debug emails and trying to learn a little about php scripting i noticed that the script is trying to get data from SHIPTOCOUNTRYNAME but paypal was never returning that field the only field to do with country was SHIPTOCOUNTRY which returns the correct 2 letter country code.

So i changed line 1825 in paypalwpp.php
...
now it appears to work perfectly.
...

MODERATOR NOTE: See here for a more efficient fix: http://www.zen-cart.com/forum/showpost.php?p=504386&postcount=62

Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
Appreciate Zen-Cart? - Always keep a banner link on your shop

24 Jan 2009, 11:00 PM
#67
devices avatar

devices

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

Sorry for the delay I have only just noticed the post notification email.

The file is

includes\modules\payment\paypalwpp.php

It should be nearly 3000 lines long approx 170k.

I hope this helps. :smile:

Regards

Dave.

beauty is in the eye of the beer holder

25 Jan 2009, 12:18 AM
#68
dinnages avatar

dinnages

Zen Follower

Join Date:
May 2007
Location:
Brighton/Hove/Sussex
Posts:
146
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

I have now changed that line in the file named paypalwpp.php
However it was on line 1575 at 141kb ?
This was using my editor to find it, thats with my FTP program.

I have taken my site offline as I will have to move over to 1.3.8 as its being far too fussy now about paypal, & losing a few sales on the way.
Unless I have had someone mess up some files, some page templates have suddenly gone adrift too, & Ive done nothing re templates for a few months. Page width/right sideboxes gone all wonky on me showing data that should not be there.

Anyway thanks for the link/line so I could find the right file.

Devices:

The file is
includes\modules\payment\paypalwpp.php

It should be nearly 3000 lines long approx 170k.
I hope this helps.

Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
Appreciate Zen-Cart? - Always keep a banner link on your shop

3 Feb 2009, 6:54 PM
#69
alicia1234 avatar

alicia1234

Zen Follower

Join Date:
Nov 2008
Location:
Massachusetts
Posts:
164
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

I want to report that I experienced the same error today and I'm in the US, not the UK.

Dr. Byte's solution in post #48 on this thread fixed it.
THANK YOU!

Details of "same error":
Zen 1.3.8 (new installation, not an upgrade)
Using PayPal Express Checkout and PayPal Website Payments Pro
Both configured for "Payflow-US" mode.
PayPal Checkout direct from the shopping cart works fine.
PayPal Checkout when going through normal checkout process and then selecting PayPal as the payment method gave the error "(7) 7 - Field format error: 10731-The field Shipping Address Country is required"

I applied the fix that Dr. Byte gave in his post #48 here. Now all works fine.

Thanks again.

4 Feb 2009, 9:47 AM
#70
dinnages avatar

dinnages

Zen Follower

Join Date:
May 2007
Location:
Brighton/Hove/Sussex
Posts:
146
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

alicia1234:

Dr. Byte's solution in post #48 on this thread fixed it.
THANK YOU!

Well Ive done all that, gone through all those two patches twice, with a fine tooth comb! There is still something it dont like.

Ive sat here with my Wife (her paypal account) & tried to buy a book from our store & it gets right to the end & says the same each time, about the error Shipping Address Country.

I have added numerous links around the site to enable visitors to bypass all that & use a paypal button that takes any amount they wish to pay which works being outside of the shop itself.
Does however defret the object though, but we dont lose too many sales meanwhile, my heads getting sore banging my head in frustration! The site worked great till only about a month ago now.

Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
Appreciate Zen-Cart? - Always keep a banner link on your shop

26 Jun 2009, 10:20 AM
#71
juandbb avatar

juandbb

New Zenner

Join Date:
Jan 2009
Posts:
26
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

Hello,

I have carefully read all the thread, made the proposed changes, but I still get USA as the country from any buyers paying through Paypal Express, when it shouldn't...

Any advices?

Help in advance

16 Jul 2009, 8:19 PM
#72
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

I can't believe that so long after this thread was started, I upgraded to 1.3.8a and still got this error - shouldn't this be updated in the download files for Zen by now??!

16 Jul 2009, 8:57 PM
#73
drbyte avatar

drbyte

Sensei

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

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

The posted changes are integrated into the upcoming v1.3.9 release.

.
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.

1 Sep 2009, 2:15 AM
#74
tomarriola avatar

tomarriola

Zen Follower

Join Date:
Oct 2004
Posts:
206
Plugin Contributions:
0

Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

I was experiencing this issue and scannned this forum but only noted one of the two needed fixes. It took several days of missed transactions before I returned here and found fix#2. Is there anyway we can make it known to others that drop in that two fixes are needed for this file. Or maybe I'm just a solo idiot and its not an issue for others? At the moment I feel dumb for missing fix#2.
Tom