Skip to main content

Autofill options for the checkout

Create and share a dynamic checkout link with query parameters

Bryan Schoenmaker avatar
Written by Bryan Schoenmaker
Updated over a week ago

Using so-called query parameters, you can fill in fields like first name, surname and email address automatically on the checkout page, making the payment process faster and more personalised.

Use this in ActiveCampaign for example, so that your recipients get a customised checkout page through your campaigns or automations, or automatically pre-fill a discount code and plan.


What are query parameters?

Query parameters are extra pieces of information that are entered after the URL, so that the page can do or fill something when someone clicks on the link. These parameters are displayed after the question mark (?) in the URL, and contain a certain value such as a first name, address or discount code. Plug&Pay reads this information and can automatically fill in fields on the checkout page with those values (first name, address, discount code, etc.).

Example: Click on this link and see what happens 🔗


Creating a dynamic link

Navigate to your checkout and click on the three dots at the top right.

This opens a new screen where you can set the dynamic checkout link. You can choose from a range of different options. Enabling an option opens a dropdown menu or an input field. Choose or enter a value to add to your checkout link.

To automatically extract personalised data from ActiveCampaign, use these notations as values for the parameters:

Option

ActiveCampaign

Mailchimp

First name

%FIRSTNAME%

*|FNAME|*

Surname

%LASTNAME%

*|LNAME|*

Email address

%EMAIL%

*|EMAIL|*

Country

%COUNTRY%

*|ADDRESS|*

Company name

%COMPANY%

*|USER:COMPANY|*

VAT ID

%VAT_ID_NUMBER%

*|VAT_ID|*

Postal code

%ACCT_POSTAL_CODE%

*|ZIP|*

City

%ACCT_CITY%

*|CITY|*

ℹ️ The View checkout button allows you to view
the created link including its parameters.


Example: name and email address

When I want to share my checkout with the people on my mailing list, I can enter the following values:

When I have copied the created dynamic link and place it in my email campaign in ActiveCampaign, this data is automatically transferred from ActiveCampaign.
That way, everyone in your mailing list will receive a pre-filled checkout with their own details.


Sharing dynamic link

After entering the desired parameters, click on Copy link. You can now use the link in your email campaigns, automations, post it on your socials or share the link directly with someone.

❗️Please note: the link is not saved within Plug&Pay


Extra parameters

Personalise your checkouts even more by adding extra parameters.

These parameters are not available under options, but can be added manually to your checkout link.

You can include the following parameters in your checkout to pre-fill fields:

  1. ?plan=monthly

  2. ?plan=yearly

  3. ?plan=quarterly

  4. ?telephone=

  5. ?quantity=

Using multiple parameters

If you would like to use more than one parameter in the same URL, simply separate them with the '&' symbol.

For example, to pre-select the annual plan and apply the discount code, your link would look like this:

?plan=yearly&discount_code=WELCOME10
Did this answer your question?