Jump to content
peter.tbt

Tried everything but 2CO does not return back to my site - v2.2 RC2

Recommended Posts

Hi,

I read all your great posts on 2Checkout return URL and tried a lot but it still does not return back to my website and instead goes to 2CO's order complete page.

 

After successful payment processing in 2Checkout.com, I get redirected to their order complete page. it does not go to my return url.

 

my shop is at: http://www.tbeyond.com/catalog

return url is http://www.tbeyond.com/catalog/checkout_process.php

 

If I set direct return to off (Given links back to my website =true) then it works fine and customer can click the button and return to my site and log details in oscommerce. But i cannot take a chance where customers dont click the button to return to my site coz then it wouldnt log in my osc db.

 

I am using the latest oscommerce v2.2 RC2 with built in 2CO module.

 

I have also tried the following:

used an old version of 2CO module namely contributions 5343 and 904 (and later back to the newer 5664) and used the http://www.tbeyond.com/catalog/pm2checkout_process.php as the return url instead of http://www.tbeyond.com/catalog/checkout_process.php but it still dosent return back.

 

I even installed SSL and used Force Cookes=true in Admin Config/Sessions but it still does not redirect to my return URL

 

Changed the pm2checkout_process.php and outputted more than 255 chars, and also increased the timed redirect timeout period there through javascript to delay the timeout a bit but it didnt help.

 

I have been reading and trying for the last 3 days but it wont work.

I have written to 2CO as well, waiting for their reply.

 

Please help, thanks!

Share this post


Link to post
Share on other sites

 

I have written to 2CO as well, waiting for their reply.

 

And if you look at the 'Community' posts it is riddled with shop owners trying to get answers. How much do you have invested in 2CO? Personally, I would have selected a merchant company the provided the osC drop in module. It is so much easier to use a modules that is known to work and provided by the company so that updates to the modules precede the change to the server instead of having a shop down while you wait on the osCommerce community to revise the module. But that's just me.

 

 

Having said all that, what URL are you sending to them as your return URL? Is it properly formatted? In a format they expect?


Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Share this post


Link to post
Share on other sites

And if you look at the 'Community' posts it is riddled with shop owners trying to get answers. How much do you have invested in 2CO? Personally, I would have selected a merchant company the provided the osC drop in module. It is so much easier to use a modules that is known to work and provided by the company so that updates to the modules precede the change to the server instead of having a shop down while you wait on the osCommerce community to revise the module. But that's just me.

 

 

Having said all that, what URL are you sending to them as your return URL? Is it properly formatted? In a format they expect?

 

Yes, it is difficult, but I have experienced difficulties with most payment modules, don't know why it is so tough considering it is just HTML/PHP !! LOLs.

My return url was http://www.shopname.com/catalog/checkout_process.php but 2CO staff was kind enough to reply back saying that contribution 5343 was the only known module to work successfully with 2CO. So I uninstalled the default 2CO module which comes with v2.2 RC2 and installed 5343 which uses the pm2checkout_process.php, but still couldnt get it to work.

I even formatted pm2checkout_process.php to output more than 255 characters, forced cookies, installed ssl.

 

2CO staff replied that everything seems ok with my site but there may be a problem with the communication between their return servers and my host.. their developers are looking into it.

 

Hopefully I get this solved by today.

Share this post


Link to post
Share on other sites

Yes, it is difficult, but I have experienced difficulties with most payment modules, don't know why it is so tough considering it is just HTML/PHP !! LOLs.

My return url was http://www.shopname.com/catalog/checkout_process.php but 2CO staff was kind enough to reply back saying that contribution 5343 was the only known module to work successfully with 2CO. So I uninstalled the default 2CO module which comes with v2.2 RC2 and installed 5343 which uses the pm2checkout_process.php, but still couldnt get it to work.

I even formatted pm2checkout_process.php to output more than 255 characters, forced cookies, installed ssl.

 

2CO staff replied that everything seems ok with my site but there may be a problem with the communication between their return servers and my host.. their developers are looking into it.

 

Hopefully I get this solved by today.

 

Just got a response from 2CO people, heres what they say:

 

It looks like our direct return server is getting a HTTP header response of 406 Not Acceptable from your server which is causing direct return to fail. This issue will have to be resolved in your return script before direct return will be able to operate properly.

 

I checked the http headers but couldnt see a 406 as informed by 2CO staff. Anyone any ideas? I assume the return script they are talking about is the approved url ie /catalog/pm2checkout_process.php the only thing I did in this file was increase the text so that it goes over 255 characters (2CO advised me to up the characters).

Im out of ideas and since Im not in the US, Canada or UK or Europe, most of the other modules in osc wont work for me!

Share this post


Link to post
Share on other sites

Just got a response from 2CO people, heres what they say:

 

It looks like our direct return server is getting a HTTP header response of 406 Not Acceptable from your server which is causing direct return to fail. This issue will have to be resolved in your return script before direct return will be able to operate properly.

 

I checked the http headers but couldnt see a 406 as informed by 2CO staff. Anyone any ideas? I assume the return script they are talking about is the approved url ie /catalog/pm2checkout_process.php the only thing I did in this file was increase the text so that it goes over 255 characters (2CO advised me to up the characters).

Im out of ideas and since Im not in the US, Canada or UK or Europe, most of the other modules in osc wont work for me!

 

I had some correspondence with 2CO and they said:

I suspect that your sever was blocking our request. A security ruleset on your server is most likely blocking direct return as it thinks is an automated bot trying to access the server through form commands.

 

So most probably it is my server which is creating a problem coz of security, so I asked my very helpful hosting provider to try and solve it.

Share this post


Link to post
Share on other sites

I know this is an old thread but I though I would post this in case it helps someone.

I just installed 2checkout on my 2.3.1 shop and it works fine. I used the module that 2checkout specified, not the one that came with 2.3.1 as the pre-packaged module did not return to my shop.

Follow these instructions and you should have no problem with a 2.3.1 (and I assume newer) shop.

https://www.2checkout.com/shopping-cart/oscommerce/

Share this post


Link to post
Share on other sites

Update..

I recently installed a 2.3.3.2 shop and had the same problem as the original post, no return to the catalog after payment at 2checkout. Tried using the 2checkout module that was packed with osCommerce 2.3.3.2 and it did not return to catalog after paying so I uninstalled that module. Replaced the files that came with osCommerce using the module referred to by 2checkout and it worked perfect first time.

https://www.2checkout.com/shopping-cart/oscommerce/

 

Settings at 2checkout in addition to those provided in the link above to return customer to your catalog after payment:

2checkout.com: Account > Site Management > At the bottom of the page:

Direct Return: Header Redirect (Your URL)

Approved URL: http://yourSite/catalog/checkout_confirmation.php

 

Hope this helps someone..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×