Summary
In this chapter, we discovered what makes the PaymentModule
child modules so special with the necessary registration of the paymentOptions
and displayPaymentReturn
hooks and their implementation. We also found out how to create a new OrderState
for our orders. Then, we saw how to create a validation controller to convert our cart into a new order.
Now that we have mastered Payment modules, we will discover another main module type with the creation of a Shipping module.