Store Builder Library

Last modified December 7, 2018

This article applies to Contextual Commerce. (Looking for Classic Commerce documentation?)

FastSpring's Store Builder Library is a JavaScript library which can be used to add e-commerce features to your website – be that a simple way to display prices to visitors in their local currency or a complete full-featured cart which is blended into your website design. 

Here are some of the great things you can do with the library:

  • Display products created in your FastSpring store right on your website with localized prices and descriptions
  • Use Library to apply coupons, add products to the cart, provide customer information to expedite checkout process.
  • Use Library to provide customers ability to pay using a popup storefront.


Using the library is similar to using Google Analytics scripts or integrating with Facebook SDK. You will need basic HTML and Javascript knowledge to get started. 

Once referenced on the page and configured the library will provide you with two ways of interacting with data:

  • "Simple" – by following simple rules of "markup" parameters you can enable links on the page to add items to the cart, initiate checkout, apply coupon codes and other operations. "Simple" way is usually enough for scenarios like applying a coupon code prior to redirecting to checkout, displaying localized prices or creating "Add to cart and checkout" buttons allowing to start an order in a single click. For more information refer to Accessing the Library and Data from HTML.
  • "Advanced" – by using callbacks provided by the Library you can get raw cart and order data and create a full-featured storefront on your website displaying cart content to customers and allowing utilizing data to build custom e-commerce experience. For more information refer to Accessing the Library from Javascript.

Whichever way you choose you need to get started by referencing the library on your page and making sure that data is being successfully loaded. 

We maintain an advanced demo of what can be achieved using the Store Builder Library at We encourage you to explore the page prior to starting your integration and refer to the source code for implementation guidance.

Tutorial Video

Check out our tutorial video on adding a Popup Storefront to your website; it includes a demonstration of a very basic Store Builder Library implementation:   How to Add a Popup Storefront to Your Website.

Live Interactive Examples

Check out our interactive, hands-on examples at