Skip to content

Checkout Package

This package provides a one page standard checkout with the following features:

  • Concept for PaymentProviders, that can be used to implement specific Payments
  • An "offline payment" provider is part of the module

Standard checkout flow

This module implements controller and services for the following checkout flow (the checkout process for the end customer):

  1. StartAction (optional)
    • check if user is logged in
      • yes: next action
      • no: show start template (where the user can login)
  2. Checkout Action
    • this is the main step, and the template should render the big checkout form (or at least the parts that are interesting).
    • on submit and if everything was valid:
      • Action will update the cart - specifically the following informations:
        • Update billing (on cart level)
        • Update deliveryinfos on (each) delivery in the cart (e.g. used to set shipping address)
        • Select Payment Gateway and prefered Payment Method
        • Optional Save the wished payment split for each item in the cart
        • Optional add Vouchers (may already happend before)
      • Forward to next Action
  3. Review Action (Optional)
    • Renderes "review" template that can be used to review the cart
    • After confirming:
      • Action will give control to the selected PaymentFlow (see payment module)
  4. Place Order Action
    • Get PaymentFlow Result
    • Place Order and forward to success
  5. Success Action:
    • Renders order success template


If your template does not want to ask for all the information required you can also set default values for the checkoutform (strings)

  # use a faked sourcing service
  useFakeSourcingService: false
  # to enable the offline payment provider
  enableOfflinePaymentProvider: true

  # checkout flow control flags:
  skipStartAction: false
  skipReviewAction: false
  showReviewStepAfterPaymentError: false
  showEmptyCartPageIfNoItems: false
  redirectToCartOnInvalideCart: false

Sourcing Service Secondary Ports

There is the an optional secondary port provided, that we call "Sourcing Service". The Sourcing service is responsible for assigning an Item in the cart the correct source location. The source location is the location where the item should be fullfilled from. Typically a warehouse.

By providing an adapter for this port you can control the source locations for the items in your cart.