You need to login in order to make a new post. If you do not have a community account, you can get one here.

oscommerce Return URL

I’m using the new contribution 5664, that comes with the oscommerce-2.2rc2a. My problem is defining the return URL from 2checkout to oscommerce as your recommendations to use contribution 904 and http://www.example.com/catalog/pm2checkout_process.php are not applicable anymore. How can we solve this? I have already raised the issue in the oscommerce forums but I have not got a solution, I wounder if any of the new subscribers to 2checkout and using oscommerce have encountered such a problem.

RSS feed

7 Comments »

# Comment by joel 2CO Staff
2008-04-21 08:20:58

The contribution you are using should provide a URL for you to use as an Approved URL in our system. If it does not I suggest you use contribution 904. This update will allow 2Checkout and the OSC cart to work together correctly. You should still be able to use contribution 904 even if an individual wrote another newer add-on to the cart. If you have any further information about why this contribution will no longer be applicable please let us know.

 
 
# Comment by mockba
2008-04-23 02:26:43

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

 
# Comment by joel 2CO Staff
2008-04-23 08:47:14

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.

 
 
 
# Comment by mockba
2008-04-24 02:01:52

I have turned direct return to no, and I have seen the demo sale parameters. Once I clicked on the finalize order, the information have been logged to my oscommerce cart. But once I set the direct return on, and perform a demo sale by inserting the Credit Card Number Nothing happens and the sale doesn’t get recorded in my oscommerce cart. So I believe that their exist a problem with your script when I use the direct return.

 
# Comment by joel 2CO Staff
2008-04-24 07:34:50

Please open a ticket here so we can review your website and take a look at your cart integration.

 
 
 
# Comment by mockba
2008-04-27 06:57:43

This was the response I got from your tech support

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.

I wanted to share this with other people who might have the same problem

 
# Comment by craig 2CO Staff
2008-04-27 11:21:40

Thank you for posting this information. You can also read this information and much more in our direct return article.

 
 
 
You need to login before leaving a comment If you do not have an account, you can register one here.

Recent Activity:

Welcome to 2Checkout!

2Checkout is a full-service e-commerce solution recognized by Inc. Magazine as one of the fastest growing companies in the United States. 2CO’s proprietary technology supports back-office functions including financial reporting, tracking, fraud prevention, affiliate tracking, customer service and sales tracking. Click here to learn more.

Spotlight Supplier

Spotlight Supplier

Premium Web Hosting

Spotlight Shopping Cart

Spotlight Shopping Cart

VPASP Shopping Cart


Popular Tags

$150 2Checkout 2CO account accounting address affiliate approval automatic beta billing buy cart celebrity changes chargeback charges checkout consumer credit card currency customer delivery download email error essay Euro extension fee fraud FX Getting Started help India INS intangible integration international IPN issues joomla language laptop link login logo md5 medison Money monthly notification option order oscommerce Pakistan Parameter parameter error parameters payment payments payoneer payoneer card paypal pending Product product options products purchase recurring Recurring Payments refund refunds release level returns risk sales scam script sellers sell mp3 SEO service Services setup shipping shopping shopping cart software status subscription subscriptions suggestions support third party Transfer url vendor verification website