I've now switched from IPN to Express Checkout but now get the following Zen Cart error just after confirming the order:
"An error occurred when we tried to contact the payment processor. Please try again, select an alternate payment method, or contact the store owner for assistance. (10401) 10401 Transaction refused because of an invalid argument. See additional error messages for details. - Order total is invalid."
The log includes:
Request Parameters: {SetExpressCheckout} Array (
[CURRENCYCODE] => AUD
[LOCALECODE] => AU
[GIFTMESSAGEENABLE] => 0
[GIFTRECEIPTEENABLE] => 0
[GIFTWRAPENABLE] => 0
[GIFTWRAPNAME] =>
[GIFTWRAPAMOUNT] => 0
[BUYEREMAILOPTINENABLE] => 0
[CUSTOMERSERVICENUMBER] =>
[BRANDNAME] => Xxxxx Yyyyy Zzzzz
[PAYMENTACTION] => Sale
[ALLOWNOTE] => 1
[LANDINGPAGE] => Billing
[NOSHIPPING] => 0
[ADDROVERRIDE] => 1
[SHIPTONAME] => Xxxx Yyyy
[SHIPTOSTREET] => 9999 Xxxx Court
[SHIPTOSTREET2] => Xxxxx
[SHIPTOCITY] => Xxxx
[SHIPTOZIP] => 2158
[SHIPTOSTATE] => NSW
[SHIPTOCOUNTRYCODE] => AU
[SHIPTOPHONENUM] =>
[EMAIL] => [email protected]
[AMT] => 0.00
[RETURNURL] =>
http://www.xxx.com/ecommerce/ipn_main_handler.php?type=ec
[CANCELURL] =>
http://www.xxx.com/ecommerce/index.php?main_page=checkout_shipping&ec_cancel=1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[USER] => xxx.com.au
[PWD] => ****************
[VERSION] => 61.0
[SIGNATURE] => ****************************************************aEax
)
Response:
Array
(
[TIMESTAMP] => 2013-01-21T10:29:59Z
[CORRELATIONID] => 763fb2644609d
[ACK] => Failure
[VERSION] => 61.0
[BUILD] => 4181146
[L_ERRORCODE0] => 10401
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument.
See additional error messages for details.
[L_LONGMESSAGE0] => Order total is invalid.
[L_SEVERITYCODE0] => Error
[CURL_ERRORS] =>
)
(I have changed some details in this log for privacy considerations - "x, y and z were inserted".) The checkout amount certainly wasn't $0 when the transaction was conducted in Zen Cart. It was $219.40.
I've also tested EC on another Zen Cart 1.5.0 installation on the same web host - I had designed a proof of concept for the same store owner. Express Cart works fine with that site so there appears to be an issue with the configuration of the production Zen Cart.
Any suggestions for what might be the cause please?
Thanks,
Andrew.