Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2Checkout stopped working


tseven

Recommended Posts

Posted

A little background info:

I was using a visually broken (css errors) template from template monster. For those of you how may not know, the templates provided are the entire code base for osCommerce, most likely due to the lack of theme support.

 

After wrestling a bit, I was able to get a new template. Installed everything (leaving the prior database intact).

 

I submit a test order and get this error:

Parameter Error

 

 

Incorrect parameters were supplied, therefore this purchase cannot begin.

 

If you are attempting to purchase from a web site please contact the web site so that they can correct the error.

 

 

I've tried reinstalling, using several different 2checkout modules,.. all produce the same error.

 

I then discover that 2Checkout has added a few required parameters to be passed.

 

So I'm assuming the 2Checkout payment module needs to be updated to meet these new requirements.

 

I'll post the entire message from 2Checkout:

 

NEW CART PURCHASE PARAMETERS

 

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.

 

 

REQUIRED PARAMETERS

 

* 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.

 

 

OPTIONAL PARAMETERS

 

* 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

 

I hope this helps.

 

Any suggestions are appreciated.

 

Thanks

Posted

Scratch that. Figured it out. My 2CO account is not active.

 

They could have used a less cryptic message.

 

I'm not able to delete this post. Perhaps this will help somebody else out in the future.

  • 3 weeks later...
Posted

Is there any way you can clarify what you meant by your 2CO account not being active?

 

I'm still getting this parameter error message and AFAIK my account is active. I've installed the pm2checkout module, uploaded the CSV file with the help of the easyupload mod, and still getting errors.

 

Scratch that. Figured it out. My 2CO account is not active.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...