|
|
|
Cart Payment Routine 1 Specifications
This page covers the specifications for the cart payment routine on the 2Checkout.com system. It is provided for clients that want to use their own shopping cart or
other specialized program and have sufficient knowledge to code the procedures. If you have the 2Checkout.com free shopping cart you do not need to concern yourself with this specification, it is handled automatically.
Payment Routine: https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c
The following parameters must be passed from your shopping cart or other program to cartpurchase.2c.
Note: This routine also accept in authorize.net parameters ( see below ), and linkpt parameters.
sid - your 2Checkout.com account number
total - total amount to be billed (in decimal form with no dollar sign)
cart_order_id - unique order id from your cart or other program
demo - set to Y for testing (no credit card will be billed), leave off or blank for live processing.
Example:
https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c?sid=124&total=23.00&cart_order_id=1234567
The following parameters can be passed in and will be passed back to your routine. Optionally a confirmation email with your order number and ours will be sent to you and the buyer when the credit card transaction is approved.
order_number - 2Checkout.com order number
card_holder_name - Card holders name
street_address - Card holders address
city- Card holders address
state - Card holders address
zip - Card holders address
country - Card holders address
email - Card holders email
phone- Card holders phone number
cart_order_id - Your order number passed back
cart_id - Your order number passed back (same as cart_order_id)
credit_card_processed - "Y" if successfull
total - Total billed to credit card after handling charges if any
ship_name - Shipping Info
ship_street_address - Shipping Info
ship_city - Shipping Info
ship_state - Shipping Info
ship_zip - Shipping Info
ship_country - Shipping Info
Make sure and set up your Cart/Program Details in our database.
If you wish to take down a separate shipping and billing address you must indicate it here Shipping Details.
|
Cart Payment Routine 2 Specifications (Authorize.net)
In addition the above routine, the following routine will ALSO accept in Autorize.net parameters.
https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c
In most cases just find in the shopping cart ( maybe in a code file ) the authorize.net payment url
https://secure.authorize.net/gateway/transact.dll
and change it to
https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c
Then just set everything else up as if you had an authorize.net account.
The parameters that should be passed into the ./Abuyers/purchase.2c routine are as follows:
x_login - 2Checkout.com Seller id
x_amount - Amount to bill.
x_invoice_num - Order number from your system
The payment routine will ask for the following buyers information if you do not send it in
x_First_Name
x_Last_Name
x_Phone
x_Email
x_Address
x_City
x_State
x_Zip
x_Country
Other Optional Parameters Accepted:
x_Ship_To_First_Name
x_Ship_To_Last_Name
x_Ship_To_Address
x_Ship_To_City
x_Ship_To_State
x_Ship_To_Zip
x_Ship_To_Country
You can set up this payment routine to do an HTML post back to your shopping cart after the payment by setting the return here - Cart/Program Details.
Note: Any paramters sent into the routine will be passed back to your routine after the sale is complete.
| |