One-Time Products quick start

Sell a one-time product with hosted checkout via Web Checkouts, Popup Checkouts, or the Sessions API. Choose no code, low code, or API; build in test mode, verify, then go live.

Launch a one-time purchase flow in minutes using FastSpring’s hosted checkout. One-time products charge the buyer a single amount and work well for downloads, license keys, physical goods, or add-ons sold outside a subscription.

This guide outlines three approaches to going live: No code, Low code, and API. All three use the same hosted checkout, which handles taxes, currencies, payment methods, and PCI compliance for you. You will build in test mode, verify the flow, and then switch to live.

Choose a path to get started:

Before you start

  • You need a one-time product in your store catalog. If you do not have one yet, follow Create a new product and then return here.
  • Turn on test mode and use Test orders for test payment details.
  • If you plan to use Popup Checkouts or the API path, have your checkout URL and product path ready.

Share a web checkout link

Effort: No code

  1. In the FastSpring app, go to Checkouts > Web Checkouts.

  2. Open your checkout and select Links to copy a Live or Test checkout URL.

    Example URLs

    https://{yourstore}.test.onfastspring.com
    https://{yourstore}.onfastspring.com
  3. Paste the link on your site, in an email, or on social.

  4. Complete a test payment, then switch to live.

Add a popup checkout

Effort: Low code

  1. In the FastSpring app, go to Checkouts > Popup Checkouts.

  2. On the applicable popup checkout, click the No Website Domains Allowed badge. The Allowed Listed Website Domains modal opens.

  3. Add your site domain in the Allowed Listed Website Domains modal. Click Save.

  4. Add the Store Builder script to your site and set data-storefront to your popup checkout URL.

    Example popup URLs

    https://{yourstore}.test.onfastspring.com/popup-checkout
    https://{yourstore}.onfastspring.com/popup-checkout
  5. Use Store Builder actions to create your Buy button.

    Set data-fsc-item-path-value="your-product-path" and data-fsc-action="Reset, Add, Checkout" for a one-click buy. You can also use separate Add and Checkout buttons.

  6. Complete a test payment, then go live.

Create a session

Effort: API

  1. In the FastSpring app, go to Developer Tools > APIs > API Credentials and copy your Username and Password for Basic Auth.

  2. From your server, POST to https://api.fastspring.com/sessions with Basic Auth and a JSON body that includes your account ID and items array for the one-time product.

  3. Read the id field from the response.

  4. Build the session URL and redirect the buyer to it.

    Example session URLs

    https://{yourstore}.test.onfastspring.com/session/{id}
    https://{yourstore}.onfastspring.com/session/{id}