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
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
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.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
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!
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:and similarly in /includes/modules/pages/login/header_php.phpCode:if ($ec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0)) {
line 121:
Code:$ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0));
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Yeah I was primarily using the shopping cart logo. I'll give that method a try shortly
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
Note: the db bug is automatically fixed by using the new module attached yesterday in the thread you mentioned.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.