TheShop
  • Home
    • TheShop: Headless e-commerce platform with API-first approach
  • GETTING STARTED
    • Quickstart guide
  • frontstore
    • Introduction
      • Types of frontstores
    • API
      • Frontstore API
      • Template customization
    • API client for Laravel
      • Example: Find products by keyword and include sold out products with available attributes to filter
    • Basic selling flow
      • Homepage
      • Product list
      • Product detail
        • Availability and count info in products
        • Add products to cart
        • Variants tree
      • Shopping cart (Basket)
        • Shopping cart list
        • Voucher (discount code)
      • Shipping and payment
      • Checkout
        • Completing order – payment flow
    • Contact form
    • Headless CMS
    • Caching
    • Known Issues
    • FAQ
Powered by GitBook
On this page
  • 1. Shipping country
  • 2. Shipping method
  • 3. Payment method
  1. frontstore
  2. Basic selling flow

Shipping and payment

PreviousVoucher (discount code)NextCheckout

Last updated 2 years ago

Shipping and payment is the second of the three steps in the final order sequence:

  1. Shopping cart (Basket)

  2. Shipping and payment

  3. Checkout

After you have items in the Shopping cart, Shipping and payment section should be filled.

The following sections must be filled in a sequence:

1. Shipping country

First of all, the shipping country must be selected and provided for next API calls. You can offer a list of countries, or set a default one.

returns a list of available shipping countries.

2. Shipping method

After selecting the Shipping country, you can get the list of available shipping types.

3. Payment method

List all available payment methods

Provide only available payment types

After selecting the Shipping type, you can provide only available payment types.

returns all active shipping types defined for shipping country.

returns all payment types for selected shipping country, shipping type, catalog, and currency.

returns all available payment types for shipping country.

This API call
This API call
This API call
This API call
Shipping country
Shipping method
Payment method
List of shipping countries
List of shipping methods (types)
List of payment methods on the right side