Changelog / Securely load the Checkout while pre-populating the user’s information

Securely load the Checkout while pre-populating the user’s information

We’re pleased to announce a new feature we implemented following our partners’ feedback. It allows you to safely and securely load the Freemius Checkout app where the user’s name, email, VAT, country, ZIP Code/Postal Code, etc. are pre-populated.

Using user token to pre-populate the Freemius Checkout

High-level process

  1. When the user clicks on the purchase button, make a call to YOUR backend.
  2. Your backend will figure out the ID of the user and the ID of the product they’re trying to purchase.
  3. The backend will call the Freemius API to generate a token.
  4. The token will be given back to the JavaScript application that intercepted the ‘click’.
  5. The JavaScript application will thenĀ open the Freemius checkout while passing the generated token as user_tokenĀ in the configuration.

More details and code examples have been added to our documentation.