Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

A Few Questions Rate Topic   - - - - -

  • kuepper
  • Junior Member
  • Members
  • Join Date: 08-Dec 05
  • 5 posts

Posted 19 February 2006 - 05:07 AM #1

1. With 2Checkout, when I process an order it doesn't seem to pass the product name and description through 2CO - which is something they now require (I attached their requirements to the bottom of this post). I looked in the code, and it looks like c_name and c_description are there, but they aren't being passed for some reason. Does anyone know how to fix this?

2. When in Demo/Test mode with 2CO, it isn't passing the customer back to my site after they complete the order, just a Not Found page on 2CO's server. Is this just because it is in test mode?

Any help would be GREATLY appreciated. Thanks!


It has become necessary for 2Co to know the specific product that is being sold at the time of sale and for that product's description to be stored in our database for reference. This change is required both by 2CO and by our banking partners to better mitigate risk and to monitor items being sold.Because of this requirement, we are asking cart makers and/or users to make changes to their cart or programs so that additional information about the items being sold is passed to 2Co.

It is very important to note that:

1. All previous parameters remain supported and should continue to be passed in ( 2Co , Authorize.net ) ,
2. The parameter total ( or the authorize.net parameter : x_amount ) passed in for the order will continue to be the amount billed for the sale,
3. The paramaters cart_order_id and sid ( or the authorize.net parameters : x_invoice_num and x_login ) are still manditory with this parameter set.

Teal parameters are required to identify cart products being purchased and should be supplied ASAP.

For some clients it may make sense to create 1 or multiple generic products in the 2Co db, like "Premium Hosting", "Super Saver Hosting" and pass in a total for the sale as generated on their site. If this option works for you please make the product name reasonably descriptive, (i.e. "website design services" would be a good description, "web services" a poor one for the same item ).

Blue parameters are those required for product creation to take place at the time of sale if the product does not already exist in the 2Co system. These parameters are intended for carts that retain no product database or as a transition method of populating the 2Co database. Although it is desirable to receive as many parameters as possible with the purchase the option of creating products on the fly should only be used when no other options exist.


* c_prod or c_prod_[:digit] : This parameter will contain either the assigned_product_id given to the product upon creation in the 2CO system or a vendor specified id. It may, optionally, also contain the id followed by a ‘,’ ( ASCII comma ) followed by an integer which will represent the quantity. This parameter should not be autogenerated with each individual sale but should be tied to a specific product. The c_prod value should match whatever external vendor id is recorded in the 2Co system. The external vendor id maybe a cart assigned product id or the vendors own internal product id as long as the value matches the value stored in the 2Co system.
o Examples of valid values:
+ 1
+ my_product_17
+ product_5,3

* id_type This parameter will contain an integer value representing the type or classification of the ids used in the c_prod parameter(s). This value will apply universally per transaction. That is to say c_prod parameters must contain only assigned_product_id values or only vendor_product_id values. Current valid values for this parameter are defined as follows.
o 1 is defined as vendor_product_id
o 2 is defined as assigned_product_id
o 3 – 0 are reserved for future use.


* sh_cost (optional) : This parameter will contain shipping and handling cost, if any. The sh_cost parameter is completely optional. This parameter has the same format rules as the parameter containing the total (total or x_amount) that you are currently using. This value received is assumed to be in the selected currency of your 2CO account.

o Examples of valid values: 0.50, 5.00, 10

* c_name or c_name_[:digit] : This parameter is required for new product creation. The value of this parameter should contain the name of the product to be created. It is limited to 128 characters including spaces and punctuation. If the value is too long it will be cut off at 128 characters.

* c_description or c_description_[:digit] : This parameter is required for new product creation. The value of this parameter should contain a short description of the product to be sold. It is limited to 255 characters including spaces and punctuation. If the value is too long this value will be stored as the long description instead. The long description will not show on the checkout pages but it will be saved in the 2Co product database.

* c_price or c_price_[:digit] : This parameter is required for new product creation. This value should reflect the price of the product in your 2CO account selected currency. This parameter has the follow format restrictions

o Numbers and decimal point only.
o Max value: 999,999.99

* c_tangible or c_tangible_[:digit] ( optional ) : This parameter is optional. If you do not provide a value for it a default value of Y will be used. This field indicates if the product is a physical product or an e-good/service. This parameter has the following format restrictions:

o Valid values: y Y n N

  • zeke
  • Megamind
  • Administrators
  • Join Date: 01-Nov 05
  • 472 posts

Posted 21 February 2006 - 07:16 AM #2

Here's the reply from 2co support:

The product creation parameters will display the cart ID as the product. After the first live sale the products are created in the database. Then on the second sale you will see the product name under the cart ID line. The reason this is not seen on the first purchase is because the product creation takes place after the first sale. We have no information on the products in the system yet during the first sale.

You will always see the cart ID with one total but you will get a product breakdown after the first sale. I am sorry for any inconvenience.

  • kuepper
  • Junior Member
  • Members
  • Join Date: 08-Dec 05
  • 5 posts

Posted 21 February 2006 - 05:04 PM #3

Alright, cool, thanks! I wasn't sure if it was something I was missing in the config, so I asked here first before assuming it was on 2COs end.

Thanks again!

  • kuepper
  • Junior Member
  • Members
  • Join Date: 08-Dec 05
  • 5 posts

Posted 21 February 2006 - 11:42 PM #4

One other thing... should I put anything in for "pending URL"?

Your instructions don't mention it:
- Log in to your 2Checkout account
- Click on the 'Look & Feel settings' in the 'Helpful links' section.
- Set the option 'Direct Return?' to 'Yes'
- Set the 'Approved URL' to:
- Set the 'Your secret Word'. A Secret Word is known only to the seller and 2CheckOut.


  • zeke
  • Megamind
  • Administrators
  • Join Date: 01-Nov 05
  • 472 posts

Posted 22 February 2006 - 07:02 AM #5

Set it the same as approved url.

  • chahinemm
  • Member
  • Members
  • Join Date: 09-Jan 07
  • 93 posts

Posted 13 January 2007 - 11:36 AM #6

What does that URL look like?

  • joe
  • Senior Member
  • Members
  • Join Date: 06-Jan 09
  • 824 posts

Posted 29 May 2009 - 01:20 PM #7

Here's the reply from 2co support:

Does this mean that in order to show the product name in 2CO, I have to have at least one order for each product?

Thanks in advance.
PM me for custom project