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:
PayPaldp PayPal Action logCode: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=
I've also verified that the my account that I'm using to test does have a country associated with the account.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 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.



