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.
Re: Paypal express not working
K, Figured it out, rather stupidly I hadnt attached a price to the test product I was using. Put a price in, setup flat rate shipping and added the Testing version of the new PaypalWPP file because of ot_tax issues and seems to work well, except I have another problem now!! I'm going to create a new post for that though!
Re: Paypal express not working
What's even more strange is that if the cart contents "total" is $0, the Express Checkout button isn't supposed to be shown at all.
From which page were you clicking on the Express Checkout button? Was it the Shopping Cart page or the Login page ?
Probably can fix it by editing /includes/modules/payment/paypal/tpl_ec_button.php
line 12 should read:
Code:
if ($ec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0)) {
and similarly in /includes/modules/pages/login/header_php.php
line 121:
Code:
$ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0));
Re: Paypal express not working (Error 10426)
Yeah I was primarily using the shopping cart logo. I'll give that method a try shortly
Re: Paypal express not working
Quote:
Originally Posted by
leighbee
Ok think I'm getting somewhere now! Log file shows this:
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.
Thanks Leighbee for looking into this. I still have no idea what is wrong with my paypal express module. I also have spoke to someone that is having the same issue and we believe it may be the host 1&1. Still not sure on that issue but we are looking into it. Anyone else using 1&1 and having this issue?
That is the exact same message that I keep getting in my debug log. I hope you get it figured out and please let me know if you do.
Re: Paypal express not working
Quote:
Originally Posted by
aharper78
Thanks Leighbee for looking into this. I still have no idea what is wrong with my paypal express module. I also have spoke to someone that is having the same issue and we believe it may be the host 1&1. Still not sure on that issue but we are looking into it. Anyone else using 1&1 and having this issue?
That is the exact same message that I keep getting in my debug log. I hope you get it figured out and please let me know if you do.
Hi Harper,
Yeah it was a combination of things, firstly make sure you can use standard shopping cart. This will highlight any configuration problems (such as total price coming up as zero). That will stop the bug report reported here.
You may wish to take a look over at http://www.zen-cart.com/forum/showthread.php?t=55143 where there are a few other niggles that have popped up, plus a fixed module file. However you will still need to fix the DB bug manually. Applying the fix on that thread will allow you to sit on a level playing field.
Hope that helps
Re: Paypal express not working (Error 10426)
Note: the db bug is automatically fixed by using the new module attached yesterday in the thread you mentioned.
Re: Paypal express not working (Error 10426)
Just also wanted to ask, previously when i was using paypal, the paypal sidebox can be used, but now, i can't seem to allow the sidebox to work with paypal express. is there any way that i can make the sidebox work again?
Re: Paypal express not working (Error 10426)
ses707 and devlyn, the 1and1 discussions have been moved to a separate topic:
http://www.zen-cart.com/forum/showthread.php?t=55802
Can you please expand on the details of where/when this happens? ie: what can I do to trigger this?
A URL to see it in action would be helpful too.
Please post any replies to issues on 1and1 in the thread/topic mentioned, as this current thread is for 10426 errors.