Access checkout URLs

Learn how to access checkout URLs for web, popup, product, API, and SBL integrations.

Access checkout URLs so you can link directly to your web, popup, or product-specific checkouts. You can also generate session-based URLs through the API or Store Builder Library.

The sections below walk through how to access web, popup, product, API, and session-based checkout URLs. Select a section or use the TOC on the right to jump ahead.

How checkout URLs work

Different checkout types use different URL patterns.

  • Web checkouts: Use direct links that you can place on your website, in emails, on social media, or in messaging. Web checkout URLs can point to your product catalog or to specific product pages.
  • Popup checkouts: Load through a JavaScript snippet on your website. Each popup checkout runs in a secure iframe and uses the data-storefront URL inside the snippet.

Every store receives a unique, non-editable subdomain. This subdomain is used in all checkout URLs.

Access web checkout URLs

Use web checkout URLs to direct customers to your product catalog or to a specific product page.

  1. In the FastSpring app, go to Checkouts > Web Checkouts.
  2. On the checkout you want to use, click Links.
  3. Choose the URL you want to use:
    • Live Homepage: Customer-facing product catalog. FastSpring processes live transactions on this page.
    • Test Homepage: Test version of your product catalog. You can place test orders from this page.
    • Live Product Page: Customer-facing product details page. Customers can purchase the product and receive configured fulfillments.
    • Test Product Page: Test version of your product details page where you can place test orders.
    • Cart Page: Any custom cart pages you have set up.

Access popup checkout URLs

Popup checkouts do not open directly from a hyperlink. Instead, each popup checkout includes a URL within its script snippet.

  1. In the FastSpring app, go to Checkouts > Popup Checkouts.
  2. On the checkout you want to use, click Place on your Website.
  3. Find the URL following data-storefront= inside the script snippet.

Note: To open the test version of a popup checkout, insert .test. between your store name and onfastspring.com.

Access product page URLs

Access checkout URLs directly from a product's details page.

  1. In the FastSpring app, go to the product's Details page.
  2. Go to the Checkout Links column on the right.
  3. Select the checkout type (web or popup).

Generate API session URLs

Use the API to generate checkout session URLs programmatically.

  1. POST order details to the /sessions endpoint to generate a session ID.
  2. Append the session ID to your checkout URL. For example:
https://yourexamplestore.onfastspring.com/session/{session id}

Load checkout sessions with the Store Builder Library

Use the Store Builder Library (SBL) to load a checkout session without manually constructing a URL.

Call the SBL's checkout session endpoint:

https://yourexamplestore.onfastspring.com/session/{session id}

The SBL loads the specified session directly in your checkout.