wopeden Posted October 9, 2014 Share Posted October 9, 2014 Hello, I'm using a 2CheckOut module from Github (https://github.com/craigchristenson/PrestaShop-2Checkout) for payments on my site, wopeden.com. My shop is built on Prestashop 1.6.0.9. It seems that when a customer checks out using 2CheckOut, instead of going to the Order Confirmation page, they are being bumped over to the Order History page. I've been trying to find a solution but it looks like I need a little help cos I'm not entirely conversant with PHP. Possible solutions include: i) Necessary parameters and variables not being passed to 2CheckOut and back to the Order Confirmation page. (I don't know if this is the case but I feel like other payments might not do this either but they still succeed on getting to the order confirmation page) ii) The 2CheckOut module not being perfectly compatible with Prestashop 1.6 (The module seems to have been written for version 1.4, adapted for 1.5 but I don't think necessarily updated for 1.6, although it works correctly, it just doesn't land on the Order Confirmation page but rather the Order History page) iii) A failed check between the module name declared in two different places. if ($order->module != $module->name) (Some people had a similar issue in an Authroize.net module and others in a HiPay module. I've tried commenting out that 'if' clause to see if that was the problem but it didn't change much) Might someone be able to take a look at this or point me in the right direction? Thanks. Link to comment Share on other sites More sharing options...
shacker Posted October 11, 2014 Share Posted October 11, 2014 for ps 1.6, you need to use the fix included. have you installed it too? Link to comment Share on other sites More sharing options...
wopeden Posted October 11, 2014 Author Share Posted October 11, 2014 Hmmmmm!! Fix included? Not too sure about that. Is that a fix for the 2CheckOut module (not the API one) or a fix for Prestashop 1.6.0.9? If it's for the 2CheckOut module, I haven't come across a fix. Would love to know about that. Link to comment Share on other sites More sharing options...
shacker Posted October 11, 2014 Share Posted October 11, 2014 when you download the module, you have 2 modules, one is the module and the another is the fix for ps 1.6 Link to comment Share on other sites More sharing options...
wopeden Posted October 11, 2014 Author Share Posted October 11, 2014 Thanks for the tip. I actually hadn't noticed that the second folder was quite separate from the API module. However I tried it (downloaded it from your terrific site) but it pretty much acts the same. It also skipped the Order-Confirmation page and went straight to the Order History page. Does the 2CheckOut module land on the Order-Confirmation page for you? Link to comment Share on other sites More sharing options...
shacker Posted October 11, 2014 Share Posted October 11, 2014 are you using a test credit card? Link to comment Share on other sites More sharing options...
wopeden Posted October 12, 2014 Author Share Posted October 12, 2014 Actually I've tried with live sales, 2CheckOut demo mode and test card numbers, but each time, it goes straight to the Order History page once the order is completed successfully. That's why I'm kinda wondering whether the module was written that way or there might be some parameters not being passed to 2CO and back. Link to comment Share on other sites More sharing options...
shacker Posted October 26, 2014 Share Posted October 26, 2014 can answer becouse im not the developer. Link to comment Share on other sites More sharing options...
monkeythreads Posted December 2, 2014 Share Posted December 2, 2014 can someone tell me where this "fix" is for 1.6? im not showing any sort of file, just the "twocheckout" and "twocheckoutpp", a text document with no name, and the readme and license files. any help is appreciated im getting the "unauthorized" first cc try, and second the order goes through to an "authentication" page where it asked for your log in info again almost like the beginning of a checkout with no items. Link to comment Share on other sites More sharing options...
wopeden Posted December 2, 2014 Author Share Posted December 2, 2014 Hello there, not sure exactly what you're trying to do, but if you want to use 2CheckOut to accept payments (including PayPal) on your Prestashop 1.6 site, you'll have to upload the 'twocheckoutpp' folder to your modules directory and activate the module. With respect to the 'fix', I didn't come across a patch or anything, just the 'twocheckoutpp' module which is probably an upgrade over the previous module (that was designed for 1.4 but also worked on 1.5). Getting an 'unauthorized' first cc and going to an authentication page... my only wonder is whether you have successfully signed up for 2CheckOut and had your account approved for accepting sales. If you do have an approved account, then my second thought would be whether you've correctly configured the module's settings in your backoffice, (secret word, etc) Hope that helps. (But FYI, the original reason for this topic was to find out how to get the 2CheckOut module to land on the Order Confirmation page but that has not been solved. It seems the module was not originally designed to land on the Order Confirmation page and I haven't yet found a modification.) Link to comment Share on other sites More sharing options...
pjessop Posted May 27, 2015 Share Posted May 27, 2015 Hi I am having exactly the same issue as wopeden. I contacted 2checkout via online chat, and they told me to contact Prestashop support. I thought this a bit odd, since I don't believe that 2checkout payment module is developed by Prestashop. Does anyone have a solution to this issue? This issue is fairly important for two reasons. 1) Not good user experience landing on Order History Page. 2) I am trying to set up Facebook publicity and need to check that code is being executed on Order Confirmation Page. I definitely have this problem with Sandbox and presume that same problem exists with live account. Link to comment Share on other sites More sharing options...
bellini13 Posted May 27, 2015 Share Posted May 27, 2015 I am having exactly the same issue as wopeden. I contacted 2checkout via online chat, and they told me to contact Prestashop support. I thought this a bit odd, since I don't believe that 2checkout payment module is developed by Prestashop. Are you using this module? http://addons.prestashop.com/en/payments-gateways-prestashop-modules/1248-2checkout.html If so, it says developed by Prestashop. If not, then what module are you using? Link to comment Share on other sites More sharing options...
pjessop Posted May 27, 2015 Share Posted May 27, 2015 I'm using https://github.com/craigchristenson/PrestaShop-2Checkout/tree/master/checkout. I believe it's been developed by 2checkout. Link to comment Share on other sites More sharing options...
bellini13 Posted May 27, 2015 Share Posted May 27, 2015 It is developed by someone named "craig christenson" https://github.com/craigchristenson I suspect it is neither Prestashop nor 2checkout. Perhaps contact Craig using the email address on that profile page Link to comment Share on other sites More sharing options...
Recommended Posts