Forums / PayPal Website Payments Pro support / [Resolved: operator error] error:10713 Invalid Data (missing country)

[Resolved: operator error] error:10713 Invalid Data (missing country)

Locked

Started by lineage on 1 Aug 2010, 7:34 PM · Views: 4,555

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Aug 2010, 7:34 PM
#1
lineage avatar

lineage

New Zenner

Join Date:
Feb 2007
Posts:
12
Plugin Contributions:
0

[Resolved: operator error] error:10713 Invalid Data (missing country)

This looks a lot like forum post **[Done v1.3.9b] 10713 Invalid Data - Missing Country** but in the latest version of Zen Cart. I checked to make sure the line of code in that thread was the same, and it is.

I've tried both live and sandbox accounts but keep getting the same error.

Here are the log files from the last transaction (sandbox):

PayPal Curl Log File:

2010-08-01 01:24:52
-------------------
(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.9e
)


Request Parameters: {DoDirectPayment} 
Array
(
    [ACCT] => ************1769
    [AMT] => 0.30
    [BUTTONSOURCE] => ZenCart-DP_us
    [CARDISSUE] => 
    [CITY] => Pensacola
    [CREDITCARDTYPE] => Visa
    [CUSTOM] => DP-1-12XXXXX091
    [CVV2] => ***
    [email] => myemail######################
    [EXPDATE] => 082015
    [FIRSTNAME] => Test
    [INVNUM] => 1-12XXXXX091-[StoreNameHere]
    [IPADDRESS] => 67.101.19.101
    [ITEMAMT] => 0.30
    [LASTNAME] => Account
    [L_AMT0] => 0.10
    [L_DESC0] =>  Color: Asphalt Size: S
    [L_NAME0] => I *#9829; the First Amendment
    [L_NUMBER0] => 
    [L_QTY0] => 3
    [NOTIFYURL] => http://mysite.com/ipn_main_handler.php
    [PAYMENTACTION] => Sale
    [PHONENUM] => 8505551212
    [SHIPTOCITY] => Pensacola
    [SHIPTOCOUNTRY] => US
    [SHIPTONAME] => My Name
    [SHIPTOSTATE] => FL
    [SHIPTOSTREET] => 123 Some Rd.
    [SHIPTOZIP] => 32526
    [STATE] => FL
    [STREET] => 123 Some Rd.
    [ZIP] => 32526
    [METHOD] => DoDirectPayment
    [CURRENCYCODE] => USD
    [USER] => sandboxuser_biz_api1.lineage.com
    [PWD] => **********
    [VERSION] => 60.0
    [SIGNATURE] => ****************************************************crJZ
)


Response: 
Array
(
    [TIMESTAMP] => 2010-08-01T18:24:52Z
    [CORRELATIONID] => 3277be917b0cf
    [ACK] => Failure
    [VERSION] => 60.0
    [BUILD] => 1421734
    [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] => 0.30
    [CURRENCYCODE] => USD
    [CURL_ERRORS] => 
)


DoDirectPayment, Elapsed: 703ms -- Failure

TIMESTAMP=2010%2d08%2d01T18%3a24%3a52Z&CORRELATIONID=3277be917b0cf&ACK=Failure&VERSION=60%2e0&BUILD=1421734&L_ERRORCODE0=10713&L_SHORTMESSAGE0=Invalid%20Data&L_LONGMESSAGE0=There%27s%20an%20error%20with%20this%20transaction%2e%20Please%20enter%20a%20country%20in%20the%20billing%20address%2e&L_SEVERITYCODE0=Error&AMT=0%2e30&CURRENCYCODE=USD&CURL_ERRORS=
```PayPaldp PayPal Action log

Aug-01-2010 13:24:51 (12XXXXX091)
getLineItemDetails 7 - subtotal comparisons
BEFORE line-item calcs: Array
(
[AMT] => 0.3
[ITEMAMT] => 0.3
[TAXAMT] => 0
[SHIPPINGAMT] => 0
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)

  • AFTER doing line-item calcs: Array
    (
    [AMT] => 0.3
    [ITEMAMT] => 0.3
    [TAXAMT] => 0
    [SHIPPINGAMT] => 0
    [SHIPDISCAMT] => 0
    [HANDLINGAMT] => 0
    [INSURANCEAMT] => 0
    [L_NUMBER0] =>
    [L_NAME0] => I *#9829; the First Amendment
    [L_DESC0] => Color: Asphalt Size: S
    [L_AMT0] => 0.1
    [L_QTY0] => 3
    )

=================================

Aug-01-2010 13:24:51 (12XXXXX091)
getLineItemDetails 8
checking subtotals...
Array
(
[calculated total] => 0.30
[AMT] => 0.30
[ITEMAMT] => 0.30
)


difference: 0 (abs+rounded: 0)

Aug-01-2010 13:24:51 (12XXXXX091)
getLineItemDetails 10
subtotals balance - okay

Aug-01-2010 13:24:51 (12XXXXX091)
before_process - DP-1
Beginning DP mode

Aug-01-2010 13:24:51 (12XXXXX091)
before_process - DP-4
options: Array
(
[AMT] => 0.30
[ITEMAMT] => 0.30
[L_NUMBER0] =>
[L_NAME0] => I *#9829; the First Amendment
[L_DESC0] => Color: Asphalt Size: S
[L_AMT0] => 0.10
[L_QTY0] => 3
[STREET] => 123 Some Rd.
[ZIP] => 32526
[CITY] => Pensacola
[STATE] => FL
[EXPDATE] => 082015
[email] => myemail######################
[PHONENUM] => 8505551212
[BUTTONSOURCE] => ZenCart-DP_us
[CURRENCY] => USD
[IPADDRESS] => 67.101.19.101
[CARDISSUE] =>
[CUSTOM] => DP-1-12XXXXX091
[INVNUM] => 1-12XXXXX091-[StoreNameHere]
[COUNTRY] => US
[PAYMENTACTION] => Sale
[SHIPTONAME] => My Name
[SHIPTOSTREET] => 123 Some Rd.
[SHIPTOCITY] => Pensacola
[SHIPTOZIP] => 32526
[SHIPTOSTATE] => FL
[SHIPTOCOUNTRY] => US
)

Rest of data:
0.30 08 15 Test Account Visa

Aug-01-2010 13:24:52 (1280687092)
before_process - DP-5
resultset:
Array
(
[TIMESTAMP] => 2010-08-01T18:24:52Z
[CORRELATIONID] => 3277be917b0cf
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1421734
[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] => 0.30
[CURRENCYCODE] => USD
[CURL_ERRORS] =>
)

=================================

Aug-01-2010 13:24:52 (1280687092)
termEC-2
BEFORE: Token Data:

Aug-01-2010 13:24:52 (1280687092)
termEC-10
Redirecting to checkout_payment - Stack: checkout_payment
Message: 10713 <!-- --> Invalid Data - There's an error with this transaction. Please enter a country in the billing address.
Session Data: Array
(
[securityToken] => 5d59aaXXXXXXXXXXXXXXXXce220cc7
[customers_host_address] => ip67-101-19-101.pn.at.cox.net
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[2:fb0f863b27a7adea3444283e71120b59] => Array
(
[qty] => 3
[attributes] => Array
(
[1] => 1
[2] => 7
)

                    )

            )

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

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => checkout_payment
                        [mode] => NONSSL
                        [get] => 
                        [post] => Array
                            (
                            )

                    )

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

                    )

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

                    )

            )

        [snapshot] => Array
            (
            )

    )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => USD
[today_is] => 2010-08-01
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 67.101.19.101
[customer_id] => 1
[customer_default_address_id] => 1
[customers_authorization] => 0
[customer_first_name] => My
[customer_last_name] => Name
[customer_country_id] => 223
[customer_zone_id] => 18
[valid_to_checkout] => 1
[cart_errors] => 
[sendto] => 1
[payment] => paypaldp
[shipping] => Array
    (
        [id] => freeoptions_freeoptions
        [title] => Free Shipping Options (Free Shipping)
        [cost] => 0
    )

[billto] => 1
[cot_gv] => 0.00
[comments] => 
[paypal_ec_markflow] => 1
[payment_attempt] => 1
[messageToStack] => Array
    (
        [0] => Array
            (
                [class] => checkout_payment
                [text] => 10713  <!--  -->  Invalid Data - There's an error with this transaction. Please enter a country in the billing address.
                [type] => error
            )

    )

)

=================================


I've also verified that the my account that I'm using to test does have a country associated with the account.

I've set this up for customers before, on past versions of Zen Cart without issue, so it's not as though I'm new at this.

Any advice is greatly appreciated.
1 Aug 2010, 8:39 PM
#2
lineage avatar

lineage

New Zenner

Join Date:
Feb 2007
Posts:
12
Plugin Contributions:
0

Re: [Resolved: operator error] error:10713 Invalid Data (missing country)

Just to add, PayPal Express checkout works, just not Website Payments Pro

2 Aug 2010, 7:03 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: [Resolved: operator error] error:10713 Invalid Data (missing country)

I just set up a fresh 1.3.9e store, enabled Express Checkout, then enabled Website Payments Pro, using all default values except that I entered my 3 API credentials fields and turned on Debug Log To File in both modules.
Then I created a customer, using a Florida address.
Then I added A Bug's Life Multipack Collector's Edition (from demo products) to my cart, using default attributes. (I picked a product with attributes because you did too in your example.)
Then I proceeded to checkout, selected a shipping method.
Entered my credit card number.
Confirmed the order.
It went through fine.
I tested again with Store Pickup in case shipping was affecting it. Worked fine.

In studying the code, the only thing I can see that might cause a problem, is if you've entered partial payflow credentials in UK mode but then switched your store into USA mode. Or maybe you've got a Payflow Pro module installed which is conflicting?

What settings have you selected in Express Checkout and Website Payments Pro that are not the default values? If you write down all the settings and then click Remove, and then re-Install and fill in the values again, which ones are not the same as defaults? And does it now work properly?

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

3 Aug 2010, 4:40 PM
#4
lineage avatar

lineage

New Zenner

Join Date:
Feb 2007
Posts:
12
Plugin Contributions:
0

Re: [Resolved: operator error] error:10713 Invalid Data (missing country)

Dr. Byte,

I followed your instructions and everything is working flawlessly now. I think that what did cause this is as you speculated at.

My customer told me he had a Payflow account and I did change it from Payflow-US to PayPal after I found out what level of service he actually had.

Thanks!

3 Aug 2010, 4:42 PM
#5
lineage avatar

lineage

New Zenner

Join Date:
Feb 2007
Posts:
12
Plugin Contributions:
0

Re: [Resolved: operator error] error:10713 Invalid Data (missing country)

How can I mark this post as resolved? I'm not even seeing an option to edit my original post to mark it as such.