Page 1 of 1

2checkout return to store errors

Posted: Mon Jun 27, 2011 5:46 am
by syncspin
Hello all. I am running 1.4.9 and am using 2checkout as a payment.

It all takes me to 2checkout and works great. But on return I come back to this error:


Notice: Undefined index: cart_order_id in /home/content/35/7185035/html/store2/catalog/controller/payment/twocheckout.php on line 92Notice: Undefined index: order_number in /home/content/35/7185035/html/store2/catalog/controller/payment/twocheckout.php on line 95Notice: Undefined index: total in /home/content/35/7185035/html/store2/catalog/controller/payment/twocheckout.php on line 102Notice: Undefined index: key in /home/content/35/7185035/html/store2/catalog/controller/payment/twocheckout.php on line 104We response from 2checkout.com can't be parsed. Contact site adimistrator, please!


What am I doing wrong and what do I do to fix it? I am linking to this url:
http://site.com/store/index.php?route=p ... t/callback

Re: 2checkout return to store errors

Posted: Mon Jun 27, 2011 6:20 am
by bafaraj
I had the same issue and was able to resolve it by this mod :
http://forum.opencart.com/viewtopic.php?t=11561#p56449

Re: 2checkout return to store errors

Posted: Mon Jun 27, 2011 6:56 am
by syncspin
I have verified that both of those changes in twocheckout.php and index.php have already been done and the error still persists.

2checkout is sending the information over in GET as I can see it in the URL on return. But post gives the above error. If I change all the POST to GET the error below goes away and just says this:

The response from 2checkout.com could not be parsed. Contact site adimistrator, please!

So it seems like POST is the issue. I created my own test.php file that only uses POST to show me the data and it too shows empty, only GET shows me data. But GET doesnt work in the twocheckout.php file.