Skip to main content
You can add up to two custom checkboxes to an Express Checkout session. Use them to collect input from the customer during payment, for example:
  • Marketing consent, such as permission to send offers by email or SMS
  • Newsletter signup
  • Acceptance of your own terms, such as membership or club terms
The customer’s choice is stored on the transaction, so you can act on it after payment. Express Checkout with a custom checkbox below the customer details
Custom checkboxes are available in Express Checkout only.
If you use an e-commerce platform or plugin, the platform creates the session for you. Ask your platform provider if they support custom checkboxes, since the platform also needs to read the customer’s choice from the transaction.

Add checkboxes to a session

Add a top-level checkboxes array when you create the session.
Request
For marketing consent, leave checked as false and required as false. Consent rules such as the GDPR do not accept pre-checked boxes or consent that the customer must give to complete a purchase.

Use the same checkboxes for every session

To apply the same checkboxes to every session that uses a profile, set configuration.checkboxes on the session profile instead of on each session.

Read the customer’s choice

When the customer checks or unchecks a checkbox, the checkout updates the session. After payment, the transaction includes a checkboxes array with the final checked value for each checkbox.
1

Get the transaction ID

Read transaction_id from the callback or return URL.
2

Fetch the transaction

Call GET /transactions/{id}.
Request
3

Find the checkbox by ID

Look up the checkbox in checkboxes by the id you set on the session. Use customer.email or customer.phone_number to identify who gave consent.
Response
The response is shortened. In this example, checked is true, so the customer gave consent to receive offers by email.
Store the label text together with the consent. The label shows exactly what the customer agreed to.
Last modified on November 30, 2026