Skip to content

Charge_Link

Craig Christenson edited this page Oct 26, 2012 · 2 revisions

To pass a sale to your custom checkout page, you use one of the methods provided in the Charge class. This class provides you you with several methods to pass the sale and the buyer to 2Checkout.

##Method

###link

Use automatically pass the customer and sale to 2Checkout.

####Arguments

####Returns

Purchase query string from the parameters passed in.

####Example Usage:

params = {
    'sid': 1817037,
    'cart_order_id': 'test1',
    'total': 1.00
}

link = twocheckout.Charge.link(params)

####Example Response

https://www.2checkout.com/checkout/spurchase?li_0_name=Test+Product&li_0_price=0.01&mode=2CO&sid=1817037

Clone this wiki locally