Paypal express not working (Error 10426)
I have just upgraded from 1.3.6 to 1.3.7 . Went to paypal and setup my API Access and copy/pasted the correct info into the paypal express module. I have tried changing all of the variables in paypal express like skip payment page, require confirmed address ect. and I get an error message regardless of how I configure it.
"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. (10426)"
or I get an error 400 message. I have checked and double checked the API username passwords and signiture.
This happening to anyone else? Have I done something wrong? Any help would be greatly appreciated. You can take a look for yourself at www.##############online.com add somthing to cart and try to checkout and see what I mean
Re: Paypal express not working
... sadly, I cannot find error 10426 documented in PayPal's docs.
Please turn on debug logging -- to file or to email, and post the results here.
ie: if you turn on email logging, then you'll receive an email with all the details sent to PayPal and the response that came back, including the error message you reported (including the error number). I'm looking for all the information in that message.
Re: Paypal express not working
Quote:
Originally Posted by
DrByte
... sadly, I cannot find error 10426 documented in PayPal's docs.
Please turn on debug logging -- to file or to email, and post the results here.
ie: if you turn on email logging, then you'll receive an email with all the details sent to PayPal and the response that came back, including the error message you reported (including the error number). I'm looking for all the information in that message.
here is the emailed error log
Code:
https://api-3t.paypal.com/nvp
>live
>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 WPP-NVP',
> 4 => 'X-VPS-VIT-Integration-Version: 0.1',
>)
>
>Request Parameters: array (
> 'LOCALECODE' => 'US',
> 'PAYMENTACTION' => 'Sale',
> 'EMAIL' => [/URL]'aharper78##########################'[URL="https://api-3t.paypal.com/nvp"],
> 'AMT' => '13.31',
> 'RETURNURL' =>
>'http://www.##############online.com/ipn_main_handler.php?type=ec',
> 'CANCELURL' =>
>'http://www.##############online.com/index.php?main_page=checkout_shipping&ec_cancel=1',
> 'PAGESTYLE' => 'Primary',
> 'METHOD' => 'SetExpressCheckout',
> 'CURRENCYCODE' => 'USD',
> 'USER' => 'aharper78_api1.hotmail.com',
> 'PWD' => '****************',
> 'VERSION' => '2.3',
> 'SIGNATURE' => '****************************************************FUip',
>)
>
>Response: array (
> 'TIMESTAMP' => '2007-01-03T05:23:11Z',
> 'CORRELATIONID' => 'c4c336124e2a',
> 'ACK' => 'Success',
> 'VERSION' => '2.300000',
> 'BUILD' => '1.0006',
> 'TOKEN' => 'EC-2LB51345F01374947
>',
>)
I also noticed that the checkout process looks to be emailing the info to my hotmail account and not paypal.... seems strange. Here is what I have been recieving in my email.
Quote:
Checking to see if we are in markflowcart contents: physicalNOTE: $this->showPaymentPage = 0Customer ID: 3Session Data: Array( [customers_host_address] => c-68-52-232-87.hsd1.tn.comcast.net [cartID] => [cart] => shoppingcart Object ( [observers] => Array ( ) [contents] => Array ( [9] => Array ( [qty] => 1 ) ) [total] => 13.31 [weight] => 0 [cartID] => 76589 [content_type] => physical [free_shipping_item] => 0 [free_shipping_weight] => 0 [free_shipping_price] => 0 ) [navigation] => navigationhistory Object ( [observers] => Array ( ) [path] => Array ( [0] => Array ( [page] => unsubscribe [mode] => NONSSL [get] => Array ( [addr] => [action] => unsubscribe ) [post] => Array ( ) ) [1] => Array ( [page] => account_newsletters [mode] => NONSSL [get] => [post] => Array ( ) ) [2] => Array ( [page] => account [mode] => NONSSL [get] => [post] => Array ( ) ) [3] => Array ( [page] => shippinginfo [mode] => NONSSL [get] => [post] => Array ( ) ) [4] => Array ( [page] => index [mode] => NONSSL [get] => Array ( [type] => ec ) [post] => Array ( ) ) ) [snapshot] => Array ( ) ) [check_valid] => true [language] => english [languages_id] => 1 [languages_code] => en [currency] => USD [updateExpirations] => 1 [session_counter] => 1 [customers_ip_address] => 68.52.232.87 [new_products_id_in_cart] => [valid_to_checkout] => 1 [cart_errors] => [customer_id] => 3 [customer_default_address_id] => 3 [customers_authorization] => 0 [customer_first_name] => Aaron [customer_country_id] => 223 [customer_zone_id] => 56 [cot_gv] => [cc_id] => [order_number_created] => 20 [] => c_ot_gv [messageToStack] => [payment] => paypalwpp)
Re: Paypal express not working
That's a "success" log.
Looking for one that contains the error message you reported. (error number 10426 actually)
The debug emails go to the "store owner" email address.
Re: Paypal express not working
That actually is what I recieved in the store owners email. The subject line read "debug email log" as far as "error number 10426" is concerned. It's not doing that anymore, just going to an error 400 page.
Dont know what to say but just disappointed. Looks like it will be great once I figure out what I have done wrong.
Re: Paypal express not working
You said this was an upgrade.
Can you set up a fresh 1.3.7 install without customizations and try it?
If it works, then progressively add your customizations back until it breaks, etc.
Re: Paypal express not working
Quote:
Originally Posted by
DrByte
You said this was an upgrade.
Can you set up a fresh 1.3.7 install without customizations and try it?
If it works, then progressively add your customizations back until it breaks, etc.
I'll give that a try and keep you posted. Thanks for the help and response.
Re: Paypal express not working
Hi DrByte,
I've got this exact same error message at the moment. Fresh Install, as I am looking to move over from OSCMax. IPN redirected, cURL installed, API codes setup, and I get the error: "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. (10426)"
I've turned on debug log and email this is what I get:
Subject EC_Step1_1
Quote:
Checking to see if we are in markflow
cart contents: physical
NOTE: $this->showPaymentPage = 0
Customer ID: 0
Session Data: Array
(
[customers_host_address] => LEIGH-CABIN
[cartID] =>
[cart] => shoppingcart Object
(
[observers] => Array
(
)
[contents] => Array
(
[1] => Array
(
[qty] => 1
)
)
[total] => 0
[weight] => 0.35
[cartID] => 21693
[content_type] => physical
[free_shipping_item] => 0
[free_shipping_weight] => 0
[free_shipping_price] => 0
)
[navigation] => navigationhistory Object
(
[observers] => Array
(
)
[path] => Array
(
[0] => Array
(
[page] => index
[mode] => NONSSL
[get] => Array
(
[type] => ec
)
[post] => Array
(
)
)
)
[snapshot] => Array
(
[page] => checkout_shipping
[mode] => NONSSL
[get] => Array
(
)
[post] => Array
(
)
)
)
[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => GBP
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 192.168.2.200
[new_products_id_in_cart] => 1
[valid_to_checkout] => 1
[cart_errors] =>
[payment] => paypalwpp
)
This is a fresh install - Version 1.3.7 DB Patch Level 1.3.7
Hope this helps!
Re: Paypal express not working
K, I'm going to upload this to my live server and see if I'm missing something. I havent made any code changes yet so if I fail I will reinstall all DB data and try rerunning the site to see what happens
Re: Paypal express not working
Ok think I'm getting somewhere now! Log file shows this:
Quote:
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 WPP-NVP',
4 => 'X-VPS-VIT-Integration-Version: 0.1',
)
Request Parameters: array (
'LOCALECODE' => 'US',
'PAYMENTACTION' => 'Sale',
'AMT' => '0.00',
'RETURNURL' => 'http://gelli.homedns.org/zencart/ipn_main_handler.php?type=ec',
'CANCELURL' => 'http://gelli.homedns.org/zencart/index.php?main_page=login&ec_cancel=1',
'PAGESTYLE' => 'Primary',
'METHOD' => 'SetExpressCheckout',
'CURRENCYCODE' => 'GBP',
'USER' => 'sales_api1.starchsupplies.co.uk',
'PWD' => '****************',
'VERSION' => '2.3',
'SIGNATURE' => '****************************************************.8tY',
)
Response: array (
'TIMESTAMP' => '2007-01-06T13:04:13Z',
'CORRELATIONID' => '5b4af68412fe4',
'ACK' => 'Failure',
'L_ERRORCODE0' => '10426',
'L_SHORTMESSAGE0' => 'Transaction refused because of an invalid argument. See additional error messages for details.',
'L_LONGMESSAGE0' => 'Order total is invalid.',
'L_SEVERITYCODE0' => 'Error',
'VERSION' => '2.300000',
'BUILD' => '1.0006',
)
SetExpressCheckout, Elapsed: 1648ms; Failure
Error is Order Total is Invalid, I'm going to work on that, create a standard zencart account and work through the old pages to figure out where its slipping up.