Forums / Bug Reports / [Done v1.3.9b] 10713 Invalid Data - Missing Country

[Done v1.3.9b] 10713 Invalid Data - Missing Country

Locked

Started by alhadro on 27 Apr 2010, 3:53 PM · Views: 5,971

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
27 Apr 2010, 3:53 PM
#1
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

[Done v1.3.9b] 10713 Invalid Data - Missing Country

I am using a clean Zen Cart install, unmodified (v1.3.9a). I have just set up the PayPal Web Payments Pro payment module (and express module) with my sandbox API credentials. When I try a test purchase after successfully creating an account I receive the following error:

10713 Invalid Data - There's an error with this transaction. Please enter a country in the billing address.

Are far as I can tell from the debug logs the country is being included. Below is the data from the log file with a few things removed by me for privacy.

Any help is much appreciated!

Apr-27-2010 09:38:04 (1272382684)
before_process - DP-4
options: Array
(
[AMT] => 22.50
[ITEMAMT] => 20.00
[SHIPPINGAMT] => 2.50
[STREET] => [REMOVED BY ME]
[ZIP] => 11218
[CITY] => Brooklyn
[STATE] => NY
[EXPDATE] => 042010
[EMAIL] => alhadro######################
[PHONENUM] => [REMOVED BY ME]
[BUTTONSOURCE] => ZenCart-DP_us
[CURRENCY] => USD
[IPADDRESS] => [REMOVED BY ME]
[CARDISSUE] =>
[CUSTOM] => DP-1-1272382684
[COUNTRY] => US
[PAYMENTACTION] => Sale
[SHIPTONAME] => Andrew Hadro
[SHIPTOSTREET] => [REMOVED BY ME]
[SHIPTOCITY] => Brooklyn
[SHIPTOZIP] => 11218
[SHIPTOSTATE] => NY
[SHIPTOCOUNTRY] => US
)

27 Apr 2010, 4:31 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

There should be a PayPal-CURL-xxxxx.log file alongside that one. What's in that?

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

27 Apr 2010, 4:34 PM
#3
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

2010-04-27 09:38:04

(sandbox transaction) --> https://api.sandbox.paypal.com/nvp
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(tm) - PayPal/NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.9
)

Request Parameters: {DoDirectPayment}
Array
(
[ACCT] => ************1535
[AMT] => 22.50
[BUTTONSOURCE] => ZenCart-DP_us
[CARDISSUE] =>
[CITY] => Brooklyn
[CREDITCARDTYPE] => Visa
[CUSTOM] => DP-1-1272382684
[CVV2] => ***
[EMAIL] => alhadro######################
[EXPDATE] => 042010
[FIRSTNAME] => Andrew
[IPADDRESS] => [REMOVED BY ME]
[ITEMAMT] => 20.00
[LASTNAME] => Hadro
[NOTIFYURL] => http://www.###########com/store/ipn_main_handler.php
[PAYMENTACTION] => Sale
[PHONENUM] => ############
[SHIPPINGAMT] => 2.50
[SHIPTOCITY] => Brooklyn
[SHIPTOCOUNTRY] => US
[SHIPTONAME] => Andrew Hadro
[SHIPTOSTATE] => NY
[SHIPTOSTREET] => [REMOVED BY ME]
[SHIPTOZIP] => 11218
[STATE] => NY
[STREET] => [REMOVED BY ME]
[ZIP] => 11218
[METHOD] => DoDirectPayment
[CURRENCYCODE] => USD
[USER] => ###############
[PWD] => **********
[VERSION] => 60.0
[SIGNATURE] => ****************************************************J0Yq
)

Response:
Array
(
[TIMESTAMP] => 2010-04-27T15:38:04Z
[CORRELATIONID] => 7a83ae91718ca
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1268624
[L_ERRORCODE0] => 10713
[L_SHORTMESSAGE0] => Invalid Data
[L_LONGMESSAGE0] => There's an error with this transaction. Please enter a country in the billing address.
[L_SEVERITYCODE0] => Error
[AMT] => 22.50
[CURRENCYCODE] => USD
[CURL_ERRORS] =>
)

DoDirectPayment, Elapsed: 689ms -- Failure

27 Apr 2010, 5:23 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Go to Admin->Modules->Payment, select your Express Checkout module, and tell me what mode you're in. Are you in "PayPal" mode? or "Payflow-UK" mode? or "Payflow-US" mode?
If you're in one of the "Payflow" modes, why?
If you've got a Payflow option selected, then click Edit, and tell me whether you've filled in the Payflow fields at the bottom, with the Partner/Vendor/User/Password information, and again, why?
If you're not really using one of PayPal's payflow products, then you should delete the partner/vendor/user/password information, and set your mode to PayPal instead.

Having those payflow fields filled in will cause your express and pro transactions to be treated, at least in part, as data prepared for submission to the payflow servers, which is formatted differently than for the main paypal servers. And one of those differences is the countrycode field that's evidently missing from your transaction submissions.

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

27 Apr 2010, 5:27 PM
#5
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

It is in PayPal mode, not either Payflow. Thanks for your help, any other suggestions?

27 Apr 2010, 5:32 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

And, did you check whether you've got a password set in one of the payflow fields?

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

27 Apr 2010, 5:34 PM
#7
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Yes, I made sure all of those fields are empty.

27 Apr 2010, 5:37 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

So, does "I made sure those fields are empty" mean that they were already empty? Or does it mean that you've now emptied them, and thus need to test a transaction?

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

27 Apr 2010, 5:42 PM
#9
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

My apologies, allow me to elaborate. When I checked the PayPal Website Payments Pro (USA) section in the Payments Module the PayPal mode was already set to and has been set to "PayPal". To ensure the Payflow fields were indeed blank, I set it to Payflow-US and Payflow-UK to check. All fields were indeed blank except PAYFLOW: Partner which was set by default to PayPal. That is now cleared, and I have re-set the PayPal mode back to PayPal and retested with browser cache cleared and the problem still occurs.

27 Apr 2010, 5:45 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Moving this to the Bug Reports section:

I am using a clean Zen Cart install, unmodified (v1.3.9a). I have just set up the PayPal Web Payments Pro payment module (and express module) with my sandbox API credentials. When I try a test purchase after successfully creating an account I receive the following error:

10713 Invalid Data - There's an error with this transaction. Please enter a country in the billing address.

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

27 Apr 2010, 5:47 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Edit your /includes/modules/payment/paypaldp.php file
around line 751 you'll see this line:```
if (MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY == 'UK' || MODULE_PAYMENT_PAYPALDP_PF_VENDOR != '') { // Payflow params required

Change it to read like this:```
      if (MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY == 'UK' || (MODULE_PAYMENT_PAYPALWPP_PFVENDOR != '' && MODULE_PAYMENT_PAYPALWPP_PFPASSWORD != '')) { // Payflow params required
```Then please do another test.

NOTE: These changes are included in v1.3.9b

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

27 Apr 2010, 5:57 PM
#12
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

I made that change and now recieve a different error:
10501 Invalid Configuration - This transaction cannot be processed due to an invalid merchant configuration.

According to the paypal site (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_errorcodes) that is related to the following:
Occurs when the billing agreement is disabled or inactive.

perhaps that is a different problem? Let me dig around my paypal account and see if I can re-accept the billing agreement and see if that resolves this next issue. If it does, then I can test with the original parameters in the paypaldp.php file to see if that was the cause of the initial problem as well.

27 Apr 2010, 6:51 PM
#13
alhadro avatar

alhadro

New Zenner

Join Date:
Apr 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

The problem was indeed on PayPal's end. Sorry to waste your time!

I contacted support and they informed me that the test account and test API credentials that were set up didn't get set up properly on their end. They manually accepted the billing agreement for the test account on my behalf and everything works now. INCLUDING the original code for the paypaldp.php file:

  if (MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY == 'UK' || MODULE_PAYMENT_PAYPALDP_PF_VENDOR != '') { // Payflow params required
27 Apr 2010, 7:21 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Thanks for the feedback.

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

4 May 2010, 12:26 PM
#15
mellon avatar

mellon

New Zenner

Join Date:
May 2010
Posts:
21
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

v1.3.9a
clean install
no addons
cloned the stock template and made some minor color changes
no layout problems
knownhost.com for hosting
I've searched all over for the fix and found this thread with the exact error
This is my first time setting up Paypal express and it works fine but I enabled pro and began getting the same error as the OP. Express continues to work correctly. I did verify that I was approved for Pro and it's live on paypal's site.
I tried to use sandbox initially but it failed so I've been testing live for a day or so. That's when express began working but Pro never has. I checked the payflow options and cleared one field and tried again.

It stops the order and says there needs to be a country in the address but it's there already.

here's the email it sent me:

10713 [] Invalid Data - There's an error with this transaction. Please enter a country in the billing address.

suggestions?

4 May 2010, 1:40 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Try v1.3.9b, as the coding changes mentioned above are integrated with it, and should prevent that problem.

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

4 May 2010, 4:01 PM
#17
mellon avatar

mellon

New Zenner

Join Date:
May 2010
Posts:
21
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

I'm having a heart attack after reading what it takes to do an upgrade...I'm going to try the fix and hope that works and I don't require other fixes in 1.39b

4 May 2010, 4:12 PM
#18
mellon avatar

mellon

New Zenner

Join Date:
May 2010
Posts:
21
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

DrByte:

Edit your /includes/modules/payment/paypaldp.php file
around line 751 you'll see this line:```
if (MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY == 'UK' || MODULE_PAYMENT_PAYPALDP_PF_VENDOR != '') { // Payflow params required

> Change it to read like this:```
      if (MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY == 'UK' || (MODULE_PAYMENT_PAYPALWPP_PFVENDOR != '' && MODULE_PAYMENT_PAYPALWPP_PFPASSWORD != '')) { // Payflow params required
```Then please do another test.
> 
> NOTE: These changes are included in v1.3.9b

this worked!!!!! phew, I reallllly wan't looking forward to doing that upgrade :shocking:

thanks
3 Jun 2010, 8:54 AM
#19
wilorc avatar

wilorc

New Zenner

Join Date:
Sep 2009
Posts:
65
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

Zen Cart Version: 1.3.9c
Clean Install with a few CSS modifications.

My Zen Cart is using the PayPal Website Payments Pro module. When I test a credit card checkout, I get the 10713 Invalid Data - Missing Country error, even though the country (UK) is present and correct.

The odd thing about the new Pro module is that is has two unamed fields in the module config when I go to admin -> modules -> payment -> PayPal website payments pro. The two unamed fields are between "Transaction Currency" field and "Live or Sandbox". In Website payments pro for 1.3.8a there was the "PayPal Mode" where these two unamed blank fields now are. The two fields are form text boxes but have no name or anything to say what they for, and they don't seem to do anything. Is there something wrong/missing with my install? Any help would be greatly appreciated. In am very keen to get this live.

Thank you.

3 Jun 2010, 9:08 AM
#20
wilorc avatar

wilorc

New Zenner

Join Date:
Sep 2009
Posts:
65
Plugin Contributions:
0

Re: [Done v1.3.9b] 10713 Invalid Data - Missing Country

I must apologise. I needed to delete and re-install the module and it looks much better now; the two fields are named.

Thank you.