Collapse Menu
Docs Home
Extensibility Options
Contact Support

Order Flow

Overview

This article describes the order flow process and concepts.

This article describes the order flow process and concepts. It can be helpful to understand the order flow regardless of whether you are planning to use a Web Storefront, a Popup Storefront, or a custom solution. (For example, using Store Builder Library or the FastSpring API.) 

The order flow consists of 5 phases:

  1. Checkout Preparation
  2. Customer Checkout
  3. Payment Processing
  4. Order Fulfillment
  5. Order Completed

Each phase is described below.

 

Checkout Preparation

The first step is to set up the order details. There are a variety of ways you can do this:

 

Customer Checkout

This step is where the customer determines the payment method they wish to use and provides their payment details. You can find additional details about customizing the flow for each type of Storefront:

 

Payment Processing

Once the customer has submitted their payment details, FastSpring analyzes the transaction information for potential fraud or other risk factors. If an issue is discovered, the order is canceled and the order.failed webhook event fires. Valid orders continue through the charging process. If the charge is successful, the order moves to the Order Fulfillment phase of the process. If the charge is unsuccessful, the order.failed webhook event fires, and the order is canceled. 

 Tip

If the order contains a subscription product, a subscription instance is created. See Subscription Integration for more information regarding subscription integration.

 

Order Fulfillment

The fulfillment of the order does not occur until the payment has been successfully processed. At that time, FastSpring attempts to fulfill the order. If any issues occur during the fulfillment of the order, the fulfillment.failed webhook event fires. Following the fulfillment phase, the order moves to the Order Completed phase. 

 

Order Completed

At this point in the process, the order is finished. The order completion page appears to the customer, all relevant email messages are sent, and the order.completed webhook event fires.

The following diagram explains each of the phases described above. 

Example of an order flow with no errors during payment or fulfillment processing: 

  1. Add the Store Builder Library to your website.
  2. A visitor lands on your website, where you can display localized pricing for products and maintain the cart state using the Store Builder Library.
  3. The visitor adds products to the cart (without leaving your website). 
  4. The session state is maintained in the background (and will be kept for 24 hours). 
  5. The visitor clicks "Checkout." 
  6. The session details are passed to a Web Storefront or a Popup Storefront.
  7. The customer submits their payment details.
  8. The order is fulfilled. 
  9. The order is completed.

Try FastSpring

Get a free account and see why FastSpring is the ecommerce partner of choice for software providers around the world. Try our full-service ecommerce solution today to unlock revenue growth for your online company.