This is the early access documentation preview for Custom Views. This documentation might not be in sync with our official documentation.
System interactions
Let’s walk through a typical checkout process to see how different components of the commercetools solution work together.
The customer browses/searches the website until they find the product they’re interested in, and then clicks Add to Cart (1).
commercetools Frontend (Experience Layer) sends the customer’s action to the Frontend (Orchestration Layer) for processing (2).
The Orchestration Layer collects the necessary information (context such as country or store, customer information, and product ID and quantity) and calls the Composable Commerce Carts API (3) to create a new cart if none exists for the current session, or update the current cart, adding the item to the cart. Composable Commerce returns the updated cart to the Orchestration Layer (4), which returns the cart to the Experience Layer (5), which displays the cart to the customer (6).
Satisfied with the item(s) in their cart, the customer begins the checkout process. Most checkout flows typically begin by having the customer choose (or enter) their shipping address, which provides sufficient information to calculate taxes. When Composable Commerce has the shipping address information, it uses a Tax integration hosted in commercetools Connect (7) to call an external Tax calculation service (8) to calculate the cart’s taxes.
For payment, the customer enters their credit card information directly into a secure form managed by commercetools Checkout (9), which then accesses a Payment Gateway (10) to authorize the card. The authorization code, but none of the other credit card information, is passed to Composable Commerce (11) to ensure security of the transaction.
With shipping and payment details completed, the order is submitted, and the seller can view / review the order in the Merchant Center (12). Additional integrations, hosted within commercetools Connect, will send the order to the seller’s Order Management System (13) for fulfillment.