-
Notifications
You must be signed in to change notification settings - Fork 12
Charge_Link
Jacob McConnell edited this page Jun 6, 2014
·
2 revisions
To pass a sale to your custom checkout page, you can use one of the methods provided in the ChargeService
class. This class provides you with several methods to pass the sale and the buyer to 2Checkout.
##Method
###Link
Creates a purchase query string to pass the sale and the buyer to 2Checkout.
####Arguments
- Dictonary<string, string> parameters
- Dictionary composed of sale parameters. Parameters -> 2Checkout Hosted Parameter Set
####Returns
Purchase query string from the parameters passed in.
####Example Usage:
var dictionary = new Dictionary();
dictionary.Add("sid", "1817037");
dictionary.Add("mode", "2CO");
dictionary.Add("li_0_type", "product");
dictionary.Add("li_0_name", "Example");
dictionary.Add("li_0_price", "1.00");
String PaymentLink = ChargeService.Link(dictionary);
####Example Response:
https://www.2checkout.com/checkout/spurchase?sid=1817037&mode=2CO&li_0_type=product&li_0_name=Example&li_0_price=1.00
Please feel free to contact 2Checkout directly for assistance with your integration.