Understand how to construct direct checkout page links using Fermion
product-slug
: The slug of your digital product or course that you want users to purchase. This field is mandatory and cannot be omitted.discount-code
: Any discount code that needs to be automatically applied to the user’s checkout session. The discount code must exist in your product’s discounts section area. If the code doesn’t exist or has expired, users will see an “Invalid discount code” warning but can still complete checkout at full price.
digital-product-price-id
: The specific price ID for the digital product, useful if you have multiple pricing plans.
total-installments-count
: The number of installments for partial payment plans. Only required if the selected plan is an installment plan.
prefilled-name
: Pre-fills the user’s name on the checkout form. Useful when your landing page collects user input.
prefilled-email
: Pre-fills the user’s email address on the checkout form. Useful when your landing page collects user input.
prefilled-phone-number
: Pre-fills the user’s phone number on the checkout form. Useful when your landing page collects user input.
smart-checkout-redirect
: Set to true
to automatically redirect to the best available payment gateway when prefilled-email
and prefilled-name
are present. This reduces one step for users to complete.
utm_source
, utm_medium
, utm_campaign
, utm_id
, utm_term
, utm_content
URLSearchParams
automatically handles URL
encoding, making it the safest way to construct checkout links with user
input.encodeURIComponent()
for all parameter values:
/api/buy-digital-product
URL format