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:
Fastest way to sell from landing pages, email, or social. Create a hosted checkout link for a single product or a preset cart and share it anywhere.
Keep buyers on your site with a branded button that opens a hosted checkout. Use Store Builder to launch checkout from your page.
Use the FastSpring API to create a custom checkout session for a one-time product, then send the buyer to the session URL.
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
-
In the FastSpring app, go to Checkouts > Web Checkouts.
-
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 -
Paste the link on your site, in an email, or on social.
-
Complete a test payment, then switch to live.
Add a popup checkout
Effort: Low code
-
In the FastSpring app, go to Checkouts > Popup Checkouts.
-
On the applicable popup checkout, click the No Website Domains Allowed badge. The Allowed Listed Website Domains modal opens.
-
Add your site domain in the Allowed Listed Website Domains modal. Click Save.
-
Add the Store Builder script to your site and set
data-storefrontto your popup checkout URL.Example popup URLs
https://{yourstore}.test.onfastspring.com/popup-checkout https://{yourstore}.onfastspring.com/popup-checkout -
Use Store Builder actions to create your Buy button.
Set
data-fsc-item-path-value="your-product-path"anddata-fsc-action="Reset, Add, Checkout"for a one-click buy. You can also use separate Add and Checkout buttons. -
Complete a test payment, then go live.
Create a session
Effort: API
-
In the FastSpring app, go to Developer Tools > APIs > API Credentials and copy your Username and Password for Basic Auth.
-
From your server, POST to
https://api.fastspring.com/sessionswith Basic Auth and a JSON body that includes your account ID and items array for the one-time product. -
Read the id field from the response.
-
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}
Updated 5 months ago
