Chapter 8. The Payment Module
In PrestaShop, there are three types of modules: regular modules (which we developed in the first six chapters), carrier modules (which we saw in the previous chapter), and payment modules. In this chapter, you will learn about how payment modules work.
We will first create a module that will handle both check and bank wire payments. Mainly, it will transform a cart into an order (basic payment module). Then, we will add a few more complex features.
In this chapter, we will see how to:
- Create a basic payment module
- Use the
validateOrder
function to transform a cart into an order - Create new order states
- Send an e-mail
- Connect to a third-party API
Creating a payment module
Just like a conventional module, we will first create ...
Get PrestaShop Module Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.