[Done v1.3.9d] 1.3.9 - 10408 Express Checkout token is missing
(Posting this is two parts because the forum wont let it go in as one.)
Hi all,
After failing to get a satisfactory result with normal PayPal payments I switched to PayPal Express and have spent the day getting nowhere.
I'll paste in all the info I have gathered and hopefully someone knows the secret.
The summary is:
After apparently making the payment at PayPal, the buyer is returned to the cart and the message is displayed: "10408 Express Checkout token is missing."
No order is created in the cart, and the payment is also not processed in PayPal.
I have a 138a site upgraded to 139c running on IIS7, PHP in FastCGI mode.
There are no other gateways installed, just PayPal Express Checkout.
The PayPal business account is new and the API details were easy to obtain and apply. The IPN is also specified as suggested in the PEC module settings.
The PHP temp, and the site's own cache folders are writable.
I can see sessions being created in the database.
Here are the usual tests
============================
IPNCHECK.PHP - Version 1.3.9
CURL RESPONSE RECEIVED - Communications OKAY
IPN TESTING - Response Received via CURL -- COMMUNICATIONS OKAY
IPN TESTING - Confirmation/Validation response with fsockopen(): FSOCKOPEN() RESPONSE RECEIVED - Communications OKAY
Default method likely to be used for communications is: CURL, with the fallback method being FSOCKOPEN if possible.
Script finished.
============================
============================
curltester.php
You submitted the following fields and data:
Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation
Good
Other Info
Your server IP address is: xxxxxxxxxxx
Your system identifies itself as: Zen Cart(tm) - CURL TEST
Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html
[http_code] => 200
[header_size] => 275
[request_size] => 212
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.203
[namelookup_time] => 0.125
[connect_time] => 0.156
[pretransfer_time] => 0.156
[size_upload] => 37
[size_download] => 2183
[speed_download] => 10753
[speed_upload] => 182
[download_content_length] => 2183
[upload_content_length] => 0
[starttransfer_time] => 0.203
[redirect_time] => 0
)
=============================
=============================
I also ran the fix_cache_key.php just in case
Recommendations
Possible appropriate cache directory for your site is: C:\inetpub\wwwroot\mywebsite\cache
Actual Information
Read DIR_FS_SQL_CACHE from configure.php: C:/inetpub/wwwroot/mywebsite/cache
Found SESSION_WRITE_DIRECTORY in database: C:/inetpub/wwwroot/mywebsite/cache
No changes required.
Exiting.
=============================
=============================
ipn_main_handler.php says:
Nothing to process. Please return to home page.
=============================
===============================
And here is all the stuff from the emails that arrived after I enabled debug mode. (I don't know exactly what order these go in, so I'll just try and sort them)
I'm using a single test product, with no shipping, and am testing via the live PayPal site, no sandbox.
I've obscured any private info with "xxxxx.."
--------------------------------------------------------
ec_step1 - 1
paypalwpp
Checking to see if we are in markflow
cart contents: physical
NOTE: $this->showPaymentPage = 1
Customer ID: 13
Session Data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 118.92.170.244
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxx
[customer_last_name] => xxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0
[comments] =>
[paypal_ec_markflow] => 1
)
-------------------------------------------------
ec_step1 - 2 -submit
paypalwpp
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[DESC] => Tax included in prices: 0 (0)
[LOCALECODE] => AU
[CURRENCY] => AUD
[PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[SOLUTIONTYPE] => Sole
[LANDINGPAGE] => Billing
[ADDROVERRIDE] => 1
[SHIPTONAME] => xxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxxx
[SHIPTOCITY] => xxxxxxxxxxxx
[SHIPTOZIP] => xxxx
[SHIPTOSTATE] => xxxxxxxxxx
[SHIPTOCOUNTRYCODE] => NZ
[EMAIL] => xxxxxx##########################
[RETURNURL] => http://www.xxxxxxxxx.com/ipn_main_handler.php?type=ec
[CANCELURL] => http://www.xxxxxxxxxx.com/index.php?main_page=checkout_shipping&ec_cancel=1
)
-------------------------------------------------
ec-step1-addr_check
paypalwpp
cart content is not all virtual (or customer is not logged in) ... therefore will be submitting address details
---------------------------------------------------
ec-step1-addr_check3
paypalwpp
address details from override check:Array
(
[entry_firstname] => xxxxxxxx
[entry_lastname] => xxxxxxxxxxxxx
[entry_company] =>
[entry_street_address] => xxxxxxxxx
[entry_suburb] =>
[entry_city] => xxxxxx
[entry_postcode] => xxxx
[entry_country_id] => 153
[entry_zone_id] => 0
[entry_state] => xxxxxxxxx
[zone_code] => xxxxxxxxxx
[countries_iso_code_2] => NZ
)
--------------------------------------------------------
getOverrideAddress - 1
paypalwpp
Now in markflow mode.
SESSION[sendto] = 13
--------------------------------------------------------
getOverrideAddress - 2
paypalwpp
$address_arr->fields = Array
(
[entry_firstname] => xxxxxxxxx
[entry_lastname] => xxxxxxxxxxx
[entry_company] =>
[entry_street_address] => xxxxxxxxxxxxx
[entry_suburb] =>
[entry_city] => xxxxxxxxxxxxx
[entry_postcode] => xxxx
[entry_country_id] => 153
[entry_zone_id] => 0
[entry_state] => xxxxxxxxxxxx
[zone_code] => xxxxxxxxxxxx
[countries_iso_code_2] => NZ
)
----------------------------------------------------------
ec_step2_finish - 1
paypalwpp
START: paypal_ec_payer_info= Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxx
[payer_lastname] => xxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxx
[ship_postal_code] => xxxxxxxxxx
[ship_country_name] => New Zealand
)
----------------------------------------------------
ec_step2_finish - 2
paypalwpp
country_id = 153 New Zealand NZ
address_format_id = 1
state_id = 0 (original state tested: xxxxxxxxxx )
country1->fields['countries_id'] = 153
country2->fields['countries_id'] = 153
$order->customer = Array
(
[name] => xxxxxxxxxx
[company] =>
[street_address] => xxxxxxxxxxxxxx
[suburb] =>
[city] => xxxxxxxxxxx
[postcode] => xxxxxxxxxx
[state] => xxxxxxxxxxxx
[country] => Array
(
[id] => 153
[title] => New Zealand
[iso_code_2] => NZ
[iso_code_3] => NZL
)
[format_id] => 1
[email_address] =>xxxxxxxxx##########################
[telephone] =>
[zone_id] => 0
)
-----------------------------------------------------------
ec_step2_finish - 3
paypalwpp
Exiting ec_step2_finish logged-in mode.
Selected address: 13
Original was: 13
-----------------------------------------------------------
I'm completely lost here - I have no idea what order all these debug messages go in???
:blink:
-----------------------------------------------------------
termEC-2
paypalwpp
BEFORE: $this->showPaymentPage = 1
Token Data:EC-27D27381J2732043U
-------------------------------------------------------------
termEC-3
paypalwpp
AFTER: $this->showPaymentPage = 0
------------------------------------------------------------
termEC-7
paypalwpp
$this->showPaymentPage NOT true, and have custom page parameter: checkout_process
-----------------------------------------------------
termEC-10
paypalwpp
Redirecting to checkout_process - Stack: header
Message:
Session Data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
[token] => EC-27D27381J2732043U
[PayerID] => 5AH6XFRDH3J9W
)
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => xxxxxxxxxxx
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxxxxxxx
[customer_last_name] => xxxxxxxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0
[comments] =>
[paypal_ec_markflow] => 1
[paypal_ec_token] => EC-27D27381J2732043U
[paypal_ec_payer_id] => 5AH6XFRDH3J9W
[paypal_ec_payer_info] => Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxxxxxx
[payer_lastname] => xxxxxxxxxxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxxx
[ship_postal_code] => xxxx
[ship_country_name] => New Zealand
)
[paypal_ec_temp] =>
)
------------------------------------------------------
before_process - EC-1
paypalwpp
Beginning EC mode
------------------------------------------
before_process - EC-2
paypalwpp
address overrides added:
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[DESC] =>
[SHIPTONAME] => xxxxxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxx
[SHIPTOSTREET2] =>
[SHIPTOCITY] => xxxxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxxxxx
[SHIPTOZIP] => xxxxx
[SHIPTOCOUNTRYCODE] => NZ
)
-------------------------------------------------
before_process - EC-3
paypalwpp
address info added:
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[DESC] =>
[SHIPTONAME] => xxxxxxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxx
[SHIPTOSTREET2] =>
[SHIPTOCITY] => xxxxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxxx
[SHIPTOZIP] => xxxxxx
[SHIPTOCOUNTRYCODE] => NZ
)
---------------------------------------------
before_process - EC-4
paypalwpp
info being submitted:
EC-27D27381J2732043U 5AH6XFRDH3J9W 1.00
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[DESC] =>
[SHIPTONAME] => xxxxxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxxxxx
[SHIPTOCITY] => xxxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxxxx
[SHIPTOZIP] => xxxxxxxxxxx
[SHIPTOCOUNTRYCODE] => NZ
[BUTTONSOURCE] => ZenCart-EC_us
[RETURNFMFDETAILS] => 0
[CUSTOM] => EC-13-1274414443
[INVNUM] => 13-1274414443-[xxxxxxxxxxxxx]
[CURRENCY] => AUD
)
-------------------------------------------------------
findMatchingAddressBookEntry - 1-stats
paypalwpp
lookups:
Array
(
[countries_id] => 153
[address_format_id] => 1
[zone_country_id] =>
[zone_id] => -not found-
)
check_zone: 0
zone:0
SubmittedAddress:Array
(
[name] => xxxxxxxxxxxxxxxx
[company] => xxxxxxxxxxxxxx
[street_address] => xxxxxxxxxxxxxxx
[suburb] =>
[city] => xxxxxxxxxxxxx
[postcode] => xxxxxxxxxxxx
[state] => xxxxxxxxxxxxxx
[country] => Array
(
[id] => 153
[title] => New Zealand
[iso_code_2] => NZ
[iso_code_3] => NZL
)
[country_id] => 153
[format_id] => 1
[zone_id] => 0
)
---------------------------------------------------
findMatchingAddressBookEntry - 2-read for match
paypalwpp
Lookup RecordCount = 1
--------------------------------------------------------
findMatchingAddressBookEntry - 3a
paypalwpp
From PayPal:
xxxxxxxxxxxxxxxxxxxxxx
From DB:
xxxxxxxxxxxxxxxxxxxxx
Array
(
[address_book_id] => 13
[entry_street_address] => xxxxxxxxxxxxxxxx
[entry_suburb] =>
[entry_city] => xxxxxxxxxxxx
[entry_company] =>
[entry_firstname] => xxxxxxxxxxxxxxx
[entry_lastname] => xxxxxxxxxxxxxxxx
)
----------------------------------------------------
findMatchingAddressBookEntry - 3b
paypalwpp
Exact match:
Array
(
[address_book_id] => 13
[entry_street_address] => xxxxxxxxxxxxxxxxxx
[entry_suburb] =>
[entry_city] => xxxxxxxxxxxxxxx
[entry_company] =>
[entry_firstname] => xxxxxxxxxxxxx
[entry_lastname] => xxxxxxxxxxxxxxxx
)
--------------------------------------------------
PayPal test Log - terminateEC-A
paypalwpp
goto page: checkout_process
error_msg:
Session data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
[token] => EC-27D27381J2732043U
[PayerID] => 5AH6XFRDH3J9W
)
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => xxxxxxxxxxxx
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxxxxxxxxx
[customer_last_name] => xxxxxxxxxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0
[comments] =>
[paypal_ec_markflow] => 1
[paypal_ec_token] => EC-27D27381J2732043U
[paypal_ec_payer_id] => 5AH6XFRDH3J9W
[paypal_ec_payer_info] => Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxxxxxxx
[payer_lastname] => xxxxxxxxxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxxxx
[ship_postal_code] => xxxxxxxxxxxx
[ship_country_name] => New Zealand
)
[paypal_ec_temp] =>
)
Session data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
[token] => EC-27D27381J2732043U
[PayerID] => 5AH6XFRDH3J9W
)
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => xxxxxxxxxxxxxxxxxx
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxxxxxxxxxx
[customer_last_name] => xxxxxxxxxxxxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0
[comments] =>
[paypal_ec_markflow] => 1
[paypal_ec_token] => EC-27D27381J2732043U
[paypal_ec_payer_id] => 5AH6XFRDH3J9W
[paypal_ec_payer_info] => Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxxxxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxxxxxxxxxx
[payer_lastname] => xxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxx
[ship_postal_code] => xxxxxxxxxxxxxx
[ship_country_name] => New Zealand
)
[paypal_ec_temp] =>
)
--------------------------------------------------
PayPal Debug log - GetExpressCheckoutDetails
2010-05-21 04:00:42
-------------------
(live transaction) --> https://api-3t.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.9c
)
Request Parameters: {GetExpressCheckoutDetails}
Array
(
[TOKEN] => EC-27D27381J2732043U
[REQBILLINGADDRESS] => 1
[METHOD] => GetExpressCheckoutDetails
[USER] => xxxxxxxxxxxxxxxxxx@xxxxxxxxxxxxxxxx
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************k7Qd
)
Response:
Array
(
[TOKEN] => EC-27D27381J2732043U
[CHECKOUTSTATUS] => PaymentActionNotInitiated
[TIMESTAMP] => 2010-05-21T04:01:20Z
[CORRELATIONID] => 73e716c85d696
[ACK] => Success
[VERSION] => 60.0
[BUILD] => 1311648
[EMAIL] => xxxxxxxxxxxx##########################
[PAYERID] => 5AH6XFRDH3J9W
[PAYERSTATUS] => unverified
[FIRSTNAME] => xxxxxxxxxxxxx
[LASTNAME] => xxxxxxxxxxxx
[COUNTRYCODE] => NZ
[SHIPTONAME] => xxxxxxxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxxxx
[SHIPTOCITY] => xxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxx
[SHIPTOZIP] => xxxxxxxxxxxx
[SHIPTOCOUNTRYCODE] => NZ
[SHIPTOCOUNTRYNAME] => New Zealand
[ADDRESSSTATUS] => Unconfirmed
[CURRENCYCODE] => AUD
[AMT] => 1.00
[SHIPPINGAMT] => 0.00
[HANDLINGAMT] => 0.00
[TAXAMT] => 0.00
[DESC] => Tax included in prices: 0 (0)
[INSURANCEAMT] => 0.00
[SHIPDISCAMT] => 0.00
[INSURANCEOPTIONOFFERED] => false
[INSURANCEOPTIONSELECTED] => false
[SHIPPINGOPTIONISDEFAULT] => false
[CURL_ERRORS] =>
)
-----------------------------------------------------
PayPal Debug log - SetExpressCheckout
2010-05-21 03:59:58
-------------------
(live transaction) --> https://api-3t.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.9c
)
Request Parameters: {SetExpressCheckout}
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[DESC] => Tax included in prices: 0 (0)
[LOCALECODE] => AU
[PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[LANDINGPAGE] => Billing
[ADDROVERRIDE] => 1
[SHIPTONAME] => xxxxxxxxxxxx
[SHIPTOSTREET] => xxxxx
[SHIPTOCITY] => xxxxxxxxxx
[SHIPTOZIP] => xxxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxx
[SHIPTOCOUNTRYCODE] => NZ
[EMAIL] => xxxxxxxxxx##########################
[RETURNURL] => http://www.xxxxxxxxxxx.com/ipn_main_handler.php?type=ec
[CANCELURL] => http://www.xxxxxxxxxxxxxx.com/index.php?main_page=checkout_shipping&ec_cancel=1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => AUD
[USER] => xxxxxxxxxxxxxx@xxxxxxxxxxxx
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************k7Qd
)
Response:
Array
(
[TOKEN] => EC-27D27381J2732043U
[TIMESTAMP] => 2010-05-21T04:00:36Z
[CORRELATIONID] => 357983f0a9c6
[ACK] => Success
[VERSION] => 60.0
[BUILD] => 1311648
[CURL_ERRORS] =>
)
-------------------------------------------------------------------
Continues in the next post
Re: 1.3.9c - 10408 Express Checkout token is missing
Continuing from above
---------------------------------------------------
getLineItemDetails 7 - subtotal comparisons
paypalwpp
BEFORE line-item calcs: Array
(
[AMT] => 1
[ITEMAMT] => 1
[TAXAMT] => 0
[SHIPPINGAMT] => 0
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)
- AFTER doing line-item calcs: Array
(
[AMT] => 1
[ITEMAMT] => 1
[TAXAMT] => 0
[SHIPPINGAMT] => 0
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
[DESC] => Tax included in prices: 0 (0)
)
-----------------------------------------------------
getLineItemDetails 8
paypalwpp
checking subtotals...
Array
(
[calculated total] => 1.00
[AMT] => 1.00
[ITEMAMT] => 1.00
)
-------------------
difference: 0 (abs rounded: 0)
-------------------------------------------------------
getLineItemDetails 7 - subtotal comparisons
paypalwpp
BEFORE line-item calcs: Array
(
[AMT] => 1
[ITEMAMT] => 1
[TAXAMT] => 0
[SHIPPINGAMT] => 0
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
)
- AFTER doing line-item calcs: Array
(
[AMT] => 1
[ITEMAMT] => 1
[TAXAMT] => 0
[SHIPPINGAMT] => 0
[SHIPDISCAMT] => 0
[HANDLINGAMT] => 0
[INSURANCEAMT] => 0
[DESC] => Tax included in prices: 0 (0)
)
------------------------------------------------------
getLineItemDetails 8
paypalwpp
checking subtotals...
Array
(
[calculated total] => 1.00
[AMT] => 1.00
[ITEMAMT] => 1.00
)
-------------------
difference: 0 (abs rounded: 0)
----------------------------------------------------------
getLineItemDetails 10
paypalwpp
subtotals balance - okay
--------------------------------------------------------
ALERT: PayPal Express Checkout Error (10408)
10408 Express Checkout token is missing. - Express Checkout token is missing.
---------------------------------------------------------
PayPal test Log - terminateEC-A
paypalwpp
goto page:
error_msg: 10408 Express Checkout token is missing. - Express Checkout token is missing.
Session data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
[token] => EC-27D27381J2732043U
[PayerID] => 5AH6XFRDH3J9W
)
[post] => Array
(
)
)
[1] => Array
(
[page] => checkout_process
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => xxxxxxxxxxxxx
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxxxxxxx
[customer_last_name] => xxxxxxxxxxxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0.00
[comments] =>
[paypal_ec_markflow] => 1
[paypal_ec_token] => EC-27D27381J2732043U
[paypal_ec_payer_id] => 5AH6XFRDH3J9W
[paypal_ec_payer_info] => Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxxxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxxxxxxxxxx
[payer_lastname] => xxxxxxxxxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxxxxxx
[ship_postal_code] => xxxxxxxxxxxx
[ship_country_name] => New Zealand
)
[paypal_ec_temp] =>
[payment_attempt] => 1
)
Session data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
[token] => EC-27D27381J2732043U
[PayerID] => 5AH6XFRDH3J9W
)
[post] => Array
(
)
)
[1] => Array
(
[page] => checkout_process
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => xxxxxxxxxxxx
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxxxxxxxxx
[customer_last_name] => xxxxxxxxxxxxxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0.00
[comments] =>
[paypal_ec_markflow] => 1
[paypal_ec_token] => EC-27D27381J2732043U
[paypal_ec_payer_id] => 5AH6XFRDH3J9W
[paypal_ec_payer_info] => Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxxxxxxxxxxx
[payer_lastname] => xxxxxxxxxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxxx
[ship_postal_code] => xxxxxxxxxxxx
[ship_country_name] => New Zealand
)
[paypal_ec_temp] =>
[payment_attempt] => 1
)
------------------------------------------------------------
termEC-1
paypalwpp
Killed the session vars as requested
-------------------------------------------------------------
termEC-2
paypalwpp
BEFORE: $this->showPaymentPage = 1
Token Data:
-----------------------------------------------------------
termEC-3
paypalwpp
AFTER: $this->showPaymentPage = 1
---------------------------------------------------------
termEC-4
paypalwpp
We ARE logged in, and $this->showPaymentPage === true
-------------------------------------------------------------------
PayPal Debug log - DoExpressCheckoutPayment
2010-05-21 04:00:44
-------------------
(live transaction) --> https://api-3t.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.9c
)
Request Parameters: {DoExpressCheckoutPayment}
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[SHIPTONAME] => xxxxxxxxxxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxxxx
[SHIPTOCITY] => xxxxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxxxxxx
[SHIPTOZIP] => xxxxxxxxxxxx
[SHIPTOCOUNTRYCODE] => NZ
[BUTTONSOURCE] => ZenCart-EC_us
[RETURNFMFDETAILS] => 0
[CUSTOM] => EC-13-1274414443
[INVNUM] => 13-1274414443-[Sax
[ Woodwind]] =>
[TOKEN] => EC-27D27381J2732043U
[PAYERID] => 5AH6XFRDH3J9W
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://www.xxxxxxxxxxxx.com/ipn_main_handler.php
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => AUD
[USER] => xxxxxxxxxxxxxxxxxxx@xxxxxxxxxxxxxxxxxx
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************k7Qd
)
Response:
Array
(
[TIMESTAMP] => 2010-05-21T04:01:22Z
[CORRELATIONID] => a44e3860a049
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1311648
[L_ERRORCODE0] => 10408
[L_SHORTMESSAGE0] => Express Checkout token is missing.
[L_LONGMESSAGE0] => Express Checkout token is missing.
[L_SEVERITYCODE0] => Error
[CURL_ERRORS] =>
)
-----------------------------------------------------
before_process - EC-5
paypalwpp
resultset:
Array
(
[TIMESTAMP] => 2010-05-21T04:01:22Z
[CORRELATIONID] => a44e3860a049
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1311648
[L_ERRORCODE0] => 10408
[L_SHORTMESSAGE0] => Express Checkout token is missing.
[L_LONGMESSAGE0] => Express Checkout token is missing.
[L_SEVERITYCODE0] => Error
[CURL_ERRORS] =>
)
-------------------------------------------------------------
PayPal Error Log - before_process() - EC
paypalwpp
In function: before_process() - Express Checkout
Value List:
Array
(
[AMT] => 1.00
[ITEMAMT] => 1.00
[SHIPTONAME] => xxxxxxxxxxxxxx
[SHIPTOSTREET] => xxxxxxxxxxxx
[SHIPTOCITY] => xxxxxxxxxxxx
[SHIPTOSTATE] => xxxxxxxxxxxxx
[SHIPTOZIP] => xxxxxxxxxxxx
[SHIPTOCOUNTRYCODE] => NZ
[BUTTONSOURCE] => ZenCart-EC_us
[RETURNFMFDETAILS] => 0
[CUSTOM] => EC-13-1274414443
[INVNUM] => 13-1274414443-[Sax
[ Woodwind]] =>
[TOKEN] => EC-27D27381J2732043U
[PAYERID] => 5AH6XFRDH3J9W
[PAYMENTACTION] => Sale
[NOTIFYURL] => http://www.xxxxxxxxxxx.com/ipn_main_handler.php
[METHOD] => DoExpressCheckoutPayment
[CURRENCYCODE] => AUD
[USER] => xxxxxxxxxxxxx@xxxxxxxxxxxxx
[PWD] => ****************
[VERSION] => 60.0
[SIGNATURE] => ****************************************************k7Qd
)
Response:
Array
(
[TIMESTAMP] => 2010-05-21T04:01:22Z
[CORRELATIONID] => a44e3860a049
[ACK] => Failure
[VERSION] => 60.0
[BUILD] => 1311648
[L_ERRORCODE0] => 10408
[L_SHORTMESSAGE0] => Express Checkout token is missing.
[L_LONGMESSAGE0] => Express Checkout token is missing.
[L_SEVERITYCODE0] => Error
[CURL_ERRORS] =>
)
Session data: Array
(
[securityToken] => f663feb5bd6c796e317751111126d19d
[customers_host_address] => xxxxxxxxxxxxxx.dsl.dyn.ihug.co.nz
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[303] => Array
(
[qty] => 1
)
)
[total] => 1
[weight] => 0.2
[cartID] =>
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
[token] => EC-27D27381J2732043U
[PayerID] => 5AH6XFRDH3J9W
)
[post] => Array
(
)
)
[1] => Array
(
[page] => checkout_process
[mode] => NONSSL
[get] =>
[post] => Array
(
)
)
)
[snapshot] => Array
(
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => AUD
[today_is] => 2010-05-21
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => xxxxxxxxxxxx
[customer_id] => 13
[customer_default_address_id] => 13
[customers_authorization] => 0
[customer_first_name] => xxxxxxxxxxxx
[customer_last_name] => xxxxxxxxxxx
[customer_country_id] => 153
[customer_zone_id] => 0
[valid_to_checkout] => 1
[cart_errors] =>
[sendto] => 13
[payment] => paypalwpp
[shipping] => Array
(
[id] => storepickup_storepickup
[title] => Store Pickup (Walk In)
[cost] => 0.00
)
[billto] => 13
[cot_gv] => 0.00
[comments] =>
[paypal_ec_markflow] => 1
[paypal_ec_token] => EC-27D27381J2732043U
[paypal_ec_payer_id] => 5AH6XFRDH3J9W
[paypal_ec_payer_info] => Array
(
[payer_id] => 5AH6XFRDH3J9W
[payer_email] => xxxxxxxxxx##########################
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => xxxxxxxxxxxx
[payer_lastname] => xxxxxxxxxxx
[payer_business] =>
[payer_status] => unverified
[ship_country_code] => NZ
[ship_address_status] => Unconfirmed
[ship_phone] =>
[order_comment] =>
[ship_name] => xxxxxxxxxxxxx
[ship_street_1] => xxxxxxxxxxxx
[ship_street_2] =>
[ship_city] => xxxxxxxxxxxx
[ship_state] => xxxxxxxxxxxxxx
[ship_postal_code] => xxxxxxxxxx
[ship_country_name] => New Zealand
)
[paypal_ec_temp] =>
[payment_attempt] => 1
)
-----------------------------------------------------------
termEC-6
paypalwpp
We DO have a shipping method selected, so goto PAYMENT
--------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #1
IPN PROCESSING INITIATED. *** Originating IP: xxxxxxxxxxxxx xxxxxxxx *** Browser/User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
------------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #2
IPN FATAL ERROR :: No POST data available -- Most likely initiated by browser and not PayPal. *** The rest of this log report can most likely be ignored !! ***
--------------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #3
IPN ERROR :: Could not find stored session {} in DB; thus cannot validate or re-create session as a transaction awaiting PayPal Website Payments Standard confirmation initiated by this store. Might be an Express Checkout or eBay transaction or some other action that triggers PayPal IPN notifications.
-----------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #4
IPN ERROR :: No saved Website Payments Standard session data available. Must be an Express Checkout or Direct Pay transaction. Could be a test notification, or the incoming IPN notification is not actually a bonafide PayPal transaction. NOTE: It is likely that all the following log content is meaningless or irrelevant.
--------------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #5
Breakpoint: 0 - Initializing debugging.
-------------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #6
Breakpoint: Flag Status: isECtransaction = 0 isDPtransaction = 0
-----------------------------------------------------------------
IPN DEBUG message (1274416618_ja9H) #7
IPN INFO - POST VARS received (sorted): Array ( )
--------------------------------------------------------------------
Obviously this is wayyy too much information, but I dont want to miss anything.
The debug bits at the end there say there's no session in the db. I can see blobs stored in the sessions table.. and I assume that is what it should be finding?
Or maybe that's just the IPN failing after express checkout already failed with the missing token message... I don't know enough about it.
Any advice is much appreciated.
Regards
Rob
Re: 1.3.9c - 10408 Express Checkout token is missing
Quote:
Originally Posted by
robax
And here is all the stuff from the emails that arrived after I enabled debug mode. (I don't know exactly what order these go in, so I'll just try and sort them)
The logs are much easier to read if you let it log-to-file instead of to email.
Re: 1.3.9c - 10408 Express Checkout token is missing
I think I've spotted the problem.
If I'm right, you have a very simple workaround until a bugfix can be posted:
Simply go to Admin->Configuration->My Store->Store Name and change it from "Sax & Woodwind" to "Sax and Woodwind".
It seems the ampersand is causing the problem.
Re: 1.3.9c - 10408 Express Checkout token is missing
christ!@!$%^#!!! well-spotted!
I see it now too... man what a day.. my head was hurting.. oy I squeezed my fingers hard just then waiting for the success page.. phew!!
Yes.. there's the order in the admin section, complete with products purchased. That's taken a year and a half to happen.
I still can't believe it actually works so I'm looking at the order and checking the ipn.. yes, it all looks good.
Now I have to go and apologise to everyone around here I've been bleating at about this.
What a relief
Thanks for checking thru it DrByte
Re: 1.3.9c - 10408 Express Checkout token is missing
Thanks for the update. We'll add it to the list of things to tweak for a future release.