Defining our module design
As we want to create a Cash Payment module, we need to define it. Let’s follow our standard process. This module aims to provide a cash payment option in our checkout process:
- The customer will have to pay the order by cash, picking it up at the physical store or the delivery center.
- When the customer has validated the payment solution, the order will be created, and its state will switch to Awaiting cash payment. As this order state does not already exist, our module will automatically create it on installation.
The payment option at the payment step of the checkout process should look as follows:
Figure 12.1 – The payment module step in the checkout process
Then, the following order confirmation step should display this feedback message when our module has been chosen:
Figure 12.2 – The order confirmation page in the checkout process
Now that we know our...