Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    12
    Plugin Contributions
    0

    bug [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:
    Code:
    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

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

  2. #2
    Join Date
    Feb 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zen Cart 1.3.9.e error:10713 Invalid Data (missing country)

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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Zen Cart 1.3.9.e 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.

  4. #4
    Join Date
    Feb 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zen Cart 1.3.9.e 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!

  5. #5
    Join Date
    Feb 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Zen Cart 1.3.9.e 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.

 

 

Similar Threads

  1. 15008 Invalid Data Error
    By ColePeak in forum General Questions
    Replies: 2
    Last Post: 23 May 2014, 08:23 AM
  2. v139b (10713) Invalid Data - There's an error with this transaction.
    By priyazerosoft in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 21 May 2014, 07:27 PM
  3. [Done v1.3.9b] 10713 Invalid Data - Missing Country
    By alhadro in forum Bug Reports
    Replies: 19
    Last Post: 3 Jun 2010, 10:08 AM
  4. Google data feed error: weight missing & invalid expiration date
    By alimtlai in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Oct 2009, 04:21 AM
  5. 10726 Invalid Data Error
    By mabby in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 19 Dec 2007, 06:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg