The Checkout component implements the Universal Commerce Protocol (UCP) required by Google and manages the end-to-end checkout lifecycle.
Core capabilities
When the Cart is ready for payment, the module does the following inside your commercetools Project:
- Creates a Payment resource linked to the Cart.
- Creates an Authorization Transaction on that Payment and performs authorization with a Payment Service Provider (PSP).
- Updates the Authorization TransactionState (
Pending,Success, orFailure) based on the PSP response. - Upon successful authorization, the corresponding Order resource is created and the status is synchronized back to Google.
Functional considerations
Inventory management
If the requested quantity exceeds the available stock:
- The module returns an out-of-stock error to Google.
- The checkout session remains in a
Not Ready for Paymentstate until availability is restored.
Synchronize inventory data with commercetools to prevent checkout interruptions due to stock issues.
Tax configuration
Tax calculation is automatically applied per line item based on:
- The Product's assigned Tax Category.
- The
shippingAddressandbillingAddressof the Cart (countryandstatevalues).
To integrate a third-party tax engine, use one of the following options:
- Connect template: deploy the Connect Tax integration template and adapt it to your tax provider.
- Prebuilt application: install an existing tax integration from the Connect Marketplace.
Shipping configuration
Shipping Methods must be defined in your commercetools Project, including:
- Carrier information.
- Expected delivery days.
- Supported Zones and currencies.
Shipping Method Custom Fields
name and description are mandatory.| Field | Type | Description |
|---|---|---|
earliestDeliveryInDays | Number | Minimum estimated transit time in days. |
latestDeliveryInDays | Number | Maximum estimated transit time in days. |
carrier | String | Shipping provider name (for example: Acme Shipping). |
Shipping Method Custom Fields are not required if you use external shipping methods. In that case, delivery estimates and carrier information are provided by the external shipping service.
Order and fulfillment state management
Open to Confirmed to Complete or Cancelled. Keeping Order and shipment states accurate is essential for maintaining a consistent post-purchase experience.To automatically update Order states from your fulfillment provider, use one of the following options:
- Connect template: deploy the Connect Fulfillment Integration Template and adapt it to your fulfillment provider.
- Prebuilt application: install an existing fulfillment application from the Connect Marketplace.