How to pre-fill checkout info

At times, you might find yourself wanting to pre-fill the product page with a customer's checkout information.

A good example is when you want to redirect a customer from your own project to the checkout page in order to reduce the risk of mistakes during checkout.

With SellApp, you can simply do so by appending the URL with the appropriate query string variables.


Supported variables

At present, the following query string variables are supported:

  • coupon Any coupon code you would like to have automatically applied
  • email The customer's email address
  • payment_method The payment method with which the customer will pay
  • quantity Product quantity which the customer will be purchasing
  • variant If there is more than one variant, you can specify a specific variant ID

Looking for a variable that's not in the above list? Send us a message by contacting us via live chat (found at the bottom right hand corner of this page)

Checkout Example

Your website is all about rare game skins. Logged in customers can browse and purchase these game skins. One of your customers, John Doe, wants to purchase one of these skins and clicks on it to be redirected to the SellApp checkout page.

Rather than sending John to the default URL https://example.sell.app/product/rare-game-skin you could modify the URL with the customer's information you already have on your end.

Say they have a preferred payment method, are a recurring customer eligible for a 5% discount coupon, and they modified the quantity input to 2 rare game skins.

You could then use this information and automatically modify the URL with the new query string variables.

The final URL would be: https://example.sell.app/product/rare-game-skin?coupon=LOYAL5&email=john_doe@example.com&payment_method=STRIPE&quantity=2


Embed modal variables

If you are utilizing the embed modal, you can also pass along variables before initiating the modal. For more info, click here to open the relevant documentation