To pass a sale to your custom checkout page, you can use one of the methods provided in the Twocheckout_Charge class. This class provides you you with several methods to pass the sale and the buyer to 2Checkout.
Use to create a purchase link that will pass the sale and the buyer to 2Checkout.
URL encoded purchase query string from the parameters passed in.
$args = array( 'sid' => 532001, 'mode' => '2CO', 'li_0_name' => 'Test Product', 'li_0_price' => '0.01' ); $link = Twocheckout_Charge::link($args);