Pass parameters to the Checkout

For example, you can collect a buyer’s email address as part of an earlier user flow and pass the value to the checkout so there is no need for the buyer to enter it a second time:

preparing...

If using the paddle_button class, you can also pass an email to the checkout by adding the data-email attribute to your button.

Paddle’s checkout is optimized for high conversion rates, which means that we collect the minimum amount of customer information needed to fulfill the order and ensure compliance.

If you need to collect additional data in your purchase flow, or would prefer to design your own purchase flow before the payment is taken you can build pre-checkout forms to collect user information and pass that data to the checkout so it is associated with the purchase.

The customer data fields collected in the Paddle checkout are:

  • Customer email
  • Customer country
  • Customer postcode (when required)

Any of these fields can be passed to the Paddle checkout using JavaScript parameters or HTML attributes. If the fields are passed to the checkout, the checkout will skip the steps where they are collected. If all values are supplied, the checkout will open at the payment method selection stage.

You may want to collect and pass through additional data about a user that is not needed to process the transaction, for example a user ID linked to your platform or information for marketing campaign lists.

These fields can be added to the passthrough string parameter. Any data added to this parameter will be saved and sent in any subsequent webhook alerts that you set up in your Seller Dashboard. While any string can be used as the passthrough value, you may find it easiest to use a JSON string to pass multiple data values as an object definition like the example below:

preparing...

Generating a checkout via the Pay Link API allows you to pass in parameters from your back end. Pay Link checkouts can be based on an existing product or subscription plan (in which case they will inherit certain properties of that product -- unless you override them) or can be completely custom, and not based on any existing product.

The API will return a link to a checkout with the settings securely encoded that you can pass to Paddle.js using the override parameter. This can be done using HTML data attributes:

preparing...

or as a Javascript call:

preparing...