- 24 May 2022
- 1 Minute to read
- Print
- DarkLight
Checkout Page Parameters
- Updated on 24 May 2022
- 1 Minute to read
- Print
- DarkLight
After you create a checkout page and configure your products, you can begin sending the checkout page link to potential customers. Sometimes you may want to pass additional data to the checkout page in order to customize the checkout experience, this can be done by passing certain parameters in the url. Here is a list of parameters that you can use with our checkout pages.
Key | Type | Value |
---|---|---|
dataId | int | chargify form id (from webservices settings) |
g | int | location id |
tid | int | teamId |
lang | string | sets user’s language – use code |
pf | int | chargify product family id |
p | string | chargify product handle |
cpn | string | coupon code |
subcpn=1 | int | create 1 time subcode from main cod |
afid | int | affiliate id |
tid | int | teamId |
ref | string | for tracking sales person |
direct=1 | int | no CC required for existing customer (one-click purchase) |
cp | string | content Package, specify a list of product handles that will display content options to add when purchasing a system. |
cps | string | content Package Selected, will pre check the content packages by default when loading page. |
ppp | int | for product price point id |
pp | int | price point id |
postBackURL | string | set return parameter to user’ lsvt login url (redirect) |
chargify | int | Set to 0 to hide Chargify fields and only show Paypal as payment option when Paypal is configured |
Examples
In this example we are passing in the dataId, location id, Chargify product handle, coupon code and redirect url, which it the url that users will go to after they complete the checkout process. All parameters will need to be placed after “checkout.aspx?” and each parameter will be separated by an ampersand symbol ( & ).
https://webservices.lightspeedvt.net/chargify/checkout.aspx?dataId=123 &g=123456 &p=product-handle &cpn=couponcode &postBackURL=mysite.com
Prefill Parameters
You can also prefill the checkout page form fields by using the parameters below
Key | Type | Type |
---|---|---|
first or inf_field_FirstName | string | First Name |
last or inf_field_LastName | string | Last Name |
email or inf_field_Email | string | |
phone1 | int | phone number |
phone2 | int | phone number |
Example
In this example, we’re passing in the first name, last name and email to the url.
https://webservices.lightspeedvt.net/chargify/checkout.aspx?dataId=123&g=123456&p=product-handle&first=kylo &last=ren &inf_field_Email=kylo.ren@thedarkside.com