2Checkout

Top  Previous  Next

Redirects form applicants to 2Checkout checkout page. Required arguments - first 4 variables.

SID - is your 2CO's vendor id (SID)
total - total amount or purchase. You can use mathematical_calculations and "If"_condition to calculate total amount of purchase. You can also find examples of calculation in the "checkout-page-with-connection-to-payment-gateway" demo form.
unique_number - is a unique number of the shopping cart session, you can use {#%UNIQUE_REFERENCE#} function that will generate unique number for each submission.
product1_id, product1_quantity,product1_price - 2CO id of your product, number of items and product price.

You can set as many products as you wish. Product_price and product _quantity are optional parameters, if not specified product price will be set by 2CheckOut system to default value, and product quantity will be set to 1. You can leave the space between commas empty to omit optional parameters.

Syntax:

tco_checkout = SID, total, unique_number, product1_id, product1_quantity, product1_price, product2_id, product2_quantity, product2_price, ...

Example:

tco_checkout = 1234567, 139.90, {#%UNIQUE_REFERENCE#}, my_product1, 2, 69.95

 

 

Note:
2Checkout payment gateway support is only available in the following licenses: Business, World Wide, ISP.