Tutorial

16. Checkout in the browser

The storefront buys one product at a time. In this chapter it gets a cart, and the customer goes through the checkout machine from chapter 12 in the browser: fill the cart, give an address, choose how to pay, place the order and follow the parcel.

Nothing new is generated. trax client already wrote the checkout's client in the last chapter, because the hub serves the machine: web/src/trax/checkout/ holds it.

This chapter starts from the end of chapter 15.

In this chapter

  1. The twin and the hook
  2. The checkout
  3. Run it
  4. Test it

SDK Reference

Call a machine from TypeScript | The TypeScript package


Next: 16.1 The twin and the hook