MENU
    Checkout Page Parameters
    • 24 May 2022
    • 1 Minute to read
    • Dark

    Checkout Page Parameters

    • Dark

    Article summary

    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
    or
     LocationId

    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

    Email

    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


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.