-
Notifications
You must be signed in to change notification settings - Fork 69
Charge_Link
Jacob McConnell edited this page Jun 10, 2014
·
2 revisions
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.
##Method
###link
Use to create a purchase link that will pass the sale and the customer to 2Checkout.
####Arguments
- array parameters
- Array composed of sale parameters. -> Hosted Parameter Set
URL encoded purchase query string from the parameters passed in.
$args = array(
'sid' => 1817037,
'mode' => '2CO',
'li_0_name' => 'Test Product',
'li_0_price' => '0.01'
);
$link = Twocheckout_Charge::link($args);
https://www.2checkout.com/checkout/purchase?sid=1817037&mode=2CO&li_0_name=Test+Product&li_0_price=0.01
Please feel free to contact 2Checkout directly for assistance with your integration.