Jump to content



Photo

What is the correct 2checkout Return URL!


  • Please log in to reply
21 replies to this topic

#1   mockba

mockba
  • Members
  • 25 posts
  • Real Name:Mohammed
  • Gender:Male

Posted 22 April 2008 - 07:05

I have installed the "osCommerce Online Merchant v2.2 RC2a" and I have subscribed for an account with 2checkout. After finishing all the setup steps in both oscommerce and 2checkout, comes the integration part between the two. And Until now I can't figure out a correct return URL to be inserted in the 2checkout look & feel that will properly set the items and transactions in oscommerce cart.

I would like to notify you that the following file is not available in the new version http://www.your-doma...out_process.php
and I'm trying to use the following URL http://domain.com/ca...out_process.php but still the items are not updated in the cart!!

To regenerate I'm performing the following steps: (I'm testing everything in demo as I can't go live without making sure everything is working smoothly)
1- Oscommerce Admin Panel:
2checkout Module v1.1; Enable 2CheckOut set true; Transaction Mode Test; etc ...

2- 2Checkout account Look & Feel
Account --> Site Management
Demo Setting: ON, Using this setting, all sales will be treated as demo regardless of any parameter value.
Direct Return: Immediately returned to my website
URLs: http://domain.com/ca...out_process.php (both in approved & pending URLs)

3- I login as a customer in the oscommerce cart and I perform a purchase using the 2checkout payment option, I get directed to the proper 2checkout page.
4- Once I place my info and credit card info and complete the money transaction. Nothing happens (no page redirection back to my site nor my oscommerce cart) No Customer purchase orders are set in the oscommerce cart!

Another variation:
If I changed the direct return to "Given links back to my website", once I click the link it directs me back to my website but still doesn't update customer orders

Could this possibly be a bug in the implementation of the 2checkout module or a misconfiguration from my side,
Appreciate any possible help,

#2   mockba

mockba
  • Members
  • 25 posts
  • Real Name:Mohammed
  • Gender:Male

Posted 23 April 2008 - 08:05

How are the parameters passed from 2checkout to the corresponding script in oscommerce?

2Checkout Knowledge Base "How Does The Return Process Work?"

2Checkout.com will also POST the information to your return URL in all cases, regardless of whether Direct Return is enabled or disabled. It is important to note that we will not allow a mix of GET and POST in the return process. If you are trying to return the customer to “http://www.yoursite.com/your_script.php?param=value” then we actually return the customer to “http://www.yoursite.com/your_script.php” and the ‘param=value’ will be returned as POST information with the rest of the sales information that we normally pass back.


My question using the 2checkout payment modules v1.1 contribution 5443 or contribution 904, do we need to explicitly specify the "parameters" in the return URL or it is implicitly handled by the script?

#3   mockba

mockba
  • Members
  • 25 posts
  • Real Name:Mohammed
  • Gender:Male

Posted 24 April 2008 - 07:41

After Further Investigation I asked 2checkout the following:
How can I check manually the return parameters from 2checkout page, as I want to verify wither I’m receiving return parameters from 2co or not

2Checkout will always send parameters back to an Approved URL unless that Approved URL has a static file extension such as .pdf, .htm or .html or does not have any extension at all.
You can view the form that is posted back to your Approved URL by turning Direct Return to NO inside of your 2Checkout account and then place a demo sale. When you get to the final page of the 2Checkout purchase process you will see a button that says “Click Here to Finalize Your Order”. This button is connected to the form that posts to your script. If you view the source code of this page you will see the form that is generated and can view all the parameters that are being passed to you.


I was able to verify that the transaction works

#4   mockba

mockba
  • Members
  • 25 posts
  • Real Name:Mohammed
  • Gender:Male

Posted 27 April 2008 - 06:50

Again with further testing and checking I have done the following:
Disabled direct return:
I start a demo sale. At the end of the sale, I was presented with a 'Click Here To Finalize Your Order' button, which took me back to my Approved URL when I clicked on it. All parameters get passed back to my oscommerce database.

While on the other hand when I do the following:
Enabled direct return:
I start a demo sale, once I complete and enter the credit card number, I get returned back to the login page and no purchasing details (parameters) are passed back to my oscommerce database.

I have asked 2checkout people and this was the response I got regarding the problem

With Direct Return enabled (set to “Yes” in your Look & Feel section) the page to be used for the return URL will have the sale parameters posted to it automatically while fetched by our server and displayed to the customer. This also has the effect of masking the URL used so that the customer appears to still be on the 2Checkout domain. This method can be used with redirects as long as each page outputs content (specifically, more then 255 characters) to the browser. If Direct Return encounters a page that redirects without outputting content– usually a header redirect– or content less then 255 characters, then the process will fail and the customer will be sent to our Order Processed page. This is a common issue as many developers will set their return URLs to a script that processes the returned sale parameters, then silently forward the customer to another page (usually a “thank you for purchasing” page or a page featuring download links in the case that an intangible product has been ordered).
The solution to this is to either
1.) handle all post-order processing on the page set as your return URL, including the “thank you” message or
2.) Use a timed redirect, typically done via HTML meta tags or JavaScript, after processing the parameters and displaying a message to the customer (remember: at least 255 characters).
It is also important to note that if no redirects are used, meaning the URL will be masked by our servers, then relative links will no longer point to the correct location. This can be corrected by using absolute links on the page used for the return URL or by simply using a “base” tag in the head of the document to provide a reference for the relative paths. If you have any other questions or concerns please contact 2Checkout.com.

I hope this info will be useful in fixing my problem, in case you had the same problem please share with us how did you get around it

#5   iudex

iudex
  • Members
  • 1 posts
  • Real Name:gv

Posted 06 May 2008 - 23:19

Again with further testing and checking I have done the following:
Disabled direct return:
I start a demo sale. At the end of the sale, I was presented with a 'Click Here To Finalize Your Order' button, which took me back to my Approved URL when I clicked on it. All parameters get passed back to my oscommerce database.

While on the other hand when I do the following:
Enabled direct return:
I start a demo sale, once I complete and enter the credit card number, I get returned back to the login page and no purchasing details (parameters) are passed back to my oscommerce database.

I have asked 2checkout people and this was the response I got regarding the problem

I hope this info will be useful in fixing my problem, in case you had the same problem please share with us how did you get around it



I am having the same issue with 2checkout. Sometimes I have gotten the "you don't have cookies enabled" return once putting both a demo, and live payment through 2checkout.
As far as I know, the checkout_success.php page handles both the parameters and thank you message, am I wrong on this?

I tried adding 255 character output to the page as well as adding a base href at the top of the php file, but neither have worked.

I'm very interested in a fix for this, otherwise I will have to go with the manual redirect (it works fine for me).

On a side note, products are not being created in the 2checkout database when they are passed through. Any ideas on this anyone?

#6   mockba

mockba
  • Members
  • 25 posts
  • Real Name:Mohammed
  • Gender:Male

Posted 08 May 2008 - 06:33

As far as I know, the checkout_success.php page handles both the parameters and thank you message, am I wrong on this?


Use the checkout_process.php in the return paths, and select the "Disable Direct returns" from the 2checkout site management panel, things should work fine

Until now I'm not sure how to fix it the other way!!

Edited by mockba, 08 May 2008 - 06:35.


#7   sunrise99

sunrise99
  • Members
  • 202 posts
  • Real Name:David
  • Gender:Male
  • Location:HongKong

Posted 05 October 2008 - 12:20

Use the checkout_process.php in the return paths, and select the "Disable Direct returns" from the 2checkout site management panel, things should work fine

Until now I'm not sure how to fix it the other way!!


I also have the same issue, 2checkout can't return to store and no order record on admin/order.

Best Regards,

#8   Dark_Blu

Dark_Blu
  • Members
  • 7 posts
  • Real Name:Johan
  • Gender:Male
  • Location:South Africa

Posted 30 January 2009 - 14:18

Using Osc ver. 2.2 RC2a with the default 2CO install ver. 1.1

The correct return URL http://your-domain/c...out_process.php

But it only works when direct return URL = no. When you click the confirm transaction link a security warning displays "Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by third party." before redirecting. Is this a genuine security threat?

When direct return URL = yes, it does not return. I've tried this with force cookies true & false. Why does this setting not work.

Cookie settings are also correct.


Hope this helps somebody. /rolleyes.gif' class='bbc_emoticon' alt=':rolleyes:' />

Any further input will be appreciated.

P.S. Am also waiting /blink.gif' class='bbc_emoticon' alt=':blink:' /> for a reply from 2CO regarding this will add it to post as soon as I tested their solution.

#9   Gary Osterholt

Gary Osterholt
  • Members
  • 11 posts
  • Real Name:Gary Osterholt

Posted 15 July 2009 - 03:32

I'm having the same problem with the Cookies on the auto direct.

And with that off, if you don't click the button the order won't be in the OsCommerce Admin.

Gary

#10   nealc

nealc
  • Members
  • 183 posts
  • Real Name:Neal
  • Gender:Male
  • Location:Pennsylvania

Posted 19 July 2009 - 03:18

I'm having the same problem with the Cookies on the auto direct.

And with that off, if you don't click the button the order won't be in the OsCommerce Admin.

Gary


Hey, I don't know if this will help but I was having an issue with 2checkout returning back my site and to record the order in the admin area as well as show up for the customer. Basically what I did was install the older version of the 2checkout payment module and use pm2checkout_process.php as the return for my store and all works fine for me, customers are redirected to my site and all orders show up under admin and show up for the customers to review their new and previous orders.
I am currently just learning osCommerce and PHP, but am always willing to help out.

Have successfully installed the following: Discount Coupons, UPS shipping module, Ultimate SEO URL's, Easy Meta Tags for SEO 1.0, Google XML Sitemap SEO v1.3, HTML Editor for Email and Newsletters.

#11   Gary Osterholt

Gary Osterholt
  • Members
  • 11 posts
  • Real Name:Gary Osterholt

Posted 19 July 2009 - 03:50

Hey, I don't know if this will help but I was having an issue with 2checkout returning back my site and to record the order in the admin area as well as show up for the customer. Basically what I did was install the older version of the 2checkout payment module and use pm2checkout_process.php as the return for my store and all works fine for me, customers are redirected to my site and all orders show up under admin and show up for the customers to review their new and previous orders.


Thanks.

I'll have to try that.

Gary

#12   nealc

nealc
  • Members
  • 183 posts
  • Real Name:Neal
  • Gender:Male
  • Location:Pennsylvania

Posted 19 July 2009 - 22:19

Thanks.

I'll have to try that.

Gary

No problem. I still have the contrib stored on my PC so if you can't find the right one, needs to have pm2checkout_process.php in the catalog folder or root, which replaces checkout_process.php. Let me know if you need it.
I am currently just learning osCommerce and PHP, but am always willing to help out.

Have successfully installed the following: Discount Coupons, UPS shipping module, Ultimate SEO URL's, Easy Meta Tags for SEO 1.0, Google XML Sitemap SEO v1.3, HTML Editor for Email and Newsletters.

#13   Gary Osterholt

Gary Osterholt
  • Members
  • 11 posts
  • Real Name:Gary Osterholt

Posted 22 July 2009 - 02:19

No problem. I still have the contrib stored on my PC so if you can't find the right one, needs to have pm2checkout_process.php in the catalog folder or root, which replaces checkout_process.php. Let me know if you need it.


Neal,

Thanks so much. I found the right one and it worked like magic. Thanks again.

Gary

#14   nealc

nealc
  • Members
  • 183 posts
  • Real Name:Neal
  • Gender:Male
  • Location:Pennsylvania

Posted 22 July 2009 - 03:52

Neal,

Thanks so much. I found the right one and it worked like magic. Thanks again.

Gary

Awesome. Your welcome.

Neal
I am currently just learning osCommerce and PHP, but am always willing to help out.

Have successfully installed the following: Discount Coupons, UPS shipping module, Ultimate SEO URL's, Easy Meta Tags for SEO 1.0, Google XML Sitemap SEO v1.3, HTML Editor for Email and Newsletters.

#15   ardi

ardi
  • Members
  • 3 posts
  • Real Name:Ardi Coetzee

Posted 26 August 2009 - 17:40

Awesome. Your welcome.

Neal

Can someone please send me the pm2checkout_process.php file or tell me where to get it? Pretty please! PM me if you can help! Very very urgent!

#16   ardi

ardi
  • Members
  • 3 posts
  • Real Name:Ardi Coetzee

Posted 26 August 2009 - 20:16

In case someone reads this whole post, and get stuck like me, you can get the old version of the 2checkout component here: http://www.oscommerc...earch,2checkout

#17   vksii

vksii
  • Members
  • 1 posts
  • Real Name:Virtual Knowledge

Posted 10 October 2009 - 16:28

Struggling to get this gateway to work, like so many others. Ok - I have disabled direct return. The symptom I get is that 2co processes the order in demo mode and generates emails saying so. However, when i select the 'finalize my order' button I am returned to oscommerce, but to the login screen. No order is recorded in the users cart of the admin on oscommerce. Any help much appreciated. What am I missing - its a vanilla oscommerce install.

#18   Nor-Cal

Nor-Cal
  • Members
  • 72 posts
  • Real Name:Erik

Posted 08 April 2011 - 17:01

This thing is driving me crazy... the orders go through no problem and I get redirected
back to my site, however, it never shows an order in customer orders. I need
it to show the attributes with the sizes and colors. It doesn't show that in
2co.

Any have a fix for this please?

#19   ayaz123

ayaz123
  • Members
  • 7 posts
  • Real Name:Ayaz

Posted 06 June 2011 - 07:43

All the problems are solved by just replacing pm2checkout_process.php with checkout_process.php on 2CO account in site management.

Thanks to all.

#20   undeadzed

undeadzed
  • Members
  • 3 posts
  • Real Name:Craig Christenson

Posted 13 July 2011 - 13:35

Please use the latest extension found at the URL below to integrate with 2Checkout.
http://www.oscommerc...tributions,5343

The extension will pass the appropriate return URL in dynamically which will insure that you have it defined properly and the sale status will get updated.