Why do I get an HTTP Error 404 (File Not Found) on Passback?

An HTTP 404 File Not Found error indicates that the URL specified as for your script is incorrect. For the pass back to function, 2CO must be able to locate and access the script and post the variables to it.

HTTP errors are not generated specifically by 2Checkout. They are a part of the HTTP protocol and are common amongst all web servers. It is therefore beyond the realm of 2Checkouts support to provide you with specific instructions for making these changes as every server is set up differently and 2CO does not provide server administration services as part of our support plan.

To correct this issue, follow these steps:

  1. Login to your account.
  2. Under the ‘Helpful Links’ section, click on ‘Settings’ near the ‘Look and
    Feel’ section.
  3. Check the URL that is currently entered there and correct any mistakes that
    it may contain.
  4. Click ‘Save Changes’.

What PHP code can I use to test return parameters?

Below is a sample PHP script that will catch all Post and Get parameters upon return and print the names of the parameters with their value back to the screen. This may help you develop your return process. Please note that we do not support third party scripts, so we also can not troubleshoot the script itself. It is being provided for your convenience only. We can help you if you are having problems receiving any passback parameters though.

<?php //display all post and get parameters

	echo "<h1>Get Parameter/s:</h1>";
	echo "<pre>";
	if($_GET)
		print_r($_GET);
	else
		echo "There are no get parameters.";
	echo "</pre>";
	echo "<hr/>";
	echo "<h1>Post Parameter/s:</h1>";
	echo "<pre>";
	if($_POST)
		print_r($_POST);
	else
		echo "There are no post parameters.";
	echo "</pre>";

?>

How do I add multiple products to the PNP cart using one link?

If you have chosen to upload your products to our database (instead of using a third-party cart), you can create a single link that - when clicked - will add two or more products to the 2CO cart.

https://www.2checkout.com/2co/buyer/purchase?sid=XXXXXX&product_id1=Y&product_id2=Z&quantity1=1&quantity2=1

Be sure to replace the Xs with your numerical seller ID, the Y with the ID of your first product and Z with the ID of your second product.

To add more than two products with one action, simply append a product_id3 and quantity3 parameter, then a product_id4 and quantity4 parameter and so on.

Important Note: When you are testing parameters, please be certain to clear the cookies in your browser between tests to ensure the changes you have made are applied. For more information on clearing the cookies please click here.

Can I have extra fields on the form?

Most of our Vendors that need extra details about the buyer usually have the buyer sent back to a form on their site after the sale. This way, the buyer could send all extra details directly to them.

How do I use the continue shopping button?

The continue shopping button works like this:
#1 If return_url is passed in, it returns to the page (i.e. return_url=http://www.example.com/mypage.html).
#2 If that is not passed in, it returns to the page the buyer clicked “buy” (by http_referer) from on your site (doesn’t work if you are testing from a page on your pc).
#3 If those 2 things are blank, it returns to the website url listed on the account.

Below are examples of how the return_url parameter may be implemented.

Form:
<form action=”https://www.2checkout.com/2co/buyer/purchase” method=”post”>
<input type=”hidden” name=”sid” value=”XXXXXX”>
<input type=”hidden” name=”quantity” value=”1″>
<input type=”hidden” name=”product_id” value=”1″>
<input type=”hidden” name=”return_url” value=”http://www.example.com/mypage.html”>
<input name=”submit” type=”submit” value=”Buy from 2CO”>
</form>

Hyperlink:
<a href=”https://www.2checkout.com/2co/buyer/purchase?sid=XXXXXX&quantity=1&product_id=1&return_url=http://www.example.com/mypage.html>Buy from 2CO</a>

Why won’t my parameters pass back?

Parameters are only passed back to a script. This means your Return Address needs to end in a script extension (cgi, pl, php, asp, jsp, ETC).

Do you offer an API?

An API (Application Programming Interface) is used in many different contexts in this industry. To clear this up with our service, read below:

We offer a Common Gateway Interface (CGI). This means your site will need to contain an HTML form or link with cgi parameters appended that passes the correct parameters (and the customer) to our site for checkout. Passing in the Proper Parameters will result in the customer going through the rest of our checkout process (such as entering their credit card information), and after verification, a successful sale.

The following Knowledge Base articles provide more information about the specific parameter sets 2CO uses:

What are the parameters for the Plug n Play cart?

Does your system have it’s own parameters? If so, what are they?

Does your system support Authorize.net parameters? If so, what are they?

What are the New Cart Purchase Parameters? *Required if not using the plug-and-play cart parameter set*

Can I Use 2CheckOut Without a Shopping Cart?

Yes, 2Checkout can be used without a shopping cart. All that is required is an HTML link. We provide sample code snippets for each of your products that can be easily incorporated into your site.
To see a demo visit: acmeonlinebooks.com

Can I Use a Shopping Cart With 2Checkout?

Yes, if the cart developer has developed a 2Checkout module you may use a shopping cart with your 2Checkout account. More information on supported carts may be found here. Because our purchase routine acts as a cart, it is not required that you install a cart on your website in order to use 2Checkout.

We also have our own set of proprietary parameters if you wish to design a custom cart for your website. You may find more information on the supported parameter sets and the plug-n-play cart here.

If you are a cart developer and wish to create a 2Checkout.com. module, you may wish to contact integration@2checkout.com for assistance and certification that your cart is compatible with 2Checkout.com. If your cart has been certified we will be able to add the cart to the list of recommended carts.

I need more details about the buyer, how can I get this information from them?

Our payment form cannot be altered. However, you can send us any additional information at the time of the sale and we will pass it back to your return URL when the sale is approved. For more information on this please reference the ‘Custom Parameters‘ article.

Alternatively, you can have the buyer sent back to a form on your site after the sale. This way, the buyer could send all extra details directly to you.

Page 2 of 3«123»

Recent Posts from the Community:

traduction

posted by: ykafouni

Changing Banks

posted by: devhip

Tell Us about You

posted by: bion
More from the community »

Now a faster, easier way to get paid – the 2CO reloadable MasterCard®.

Sign up today and receive a $10 credit on your card.


Click here to learn more.

Spotlight Supplier

Spotlight Supplier

Egyptian Gifts

Spotlight Product

Spotlight Product

Online Collaboration Software


Popular Tags