Get Free Audit

Payment Modules in Prestashop. Part I

May 31, 2013

1064 Alex Simonchik

Payment Modules in Prestashop. Part I

Payment process in Prestashop is all about security and effectiveness. This is what makes it so special. Information on delivery addresses and bank cards should be protected to prevent fraud – and payment modules act like security guards in this case. Numbers, calculations and orders are payment modules’ business as well. So how does it work? Let’s find out.

1. Class


As you know, all modules are inherited from the class Module, except for the payment modules. They are inherited from the abstract class PаymentMоdule, which in turn is inherited from the class Modules (inherits the installation, removal, encapsulates module properties etc).

The class PаymentMоdule possesses configuration methods of certain current payment module properties, for example: the permitted currency, the format of addresses and the list of the countries for which this payment module can be applied.

The payment module can have one of two currency settings:

  1. Checkbox – the module has the ability to work with multiple currencies;
  2. Radio – the payment is available in one currency only (applicable for the modules, designed for specific countries).

The method install of the class PаymentMоdule:

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Andrey

Also, using this class you can get the list of all installed payment modules. There is a special static method for this purpose:

PaymentModule:: getInstalledPaymentModules() – List all installed and active payment modules.

But the main method of this class is vаlidаteOrder:

This method verifies all benchmark data that was entered by customer, such as delivery addresses, bank cards numbers, also makes the calculations and creates an order.


2. Standard payment modules

The list of the standard payment modules is available in back-office in the section Modules -> Payment:


Standard payment modules:

  1. Allied Wallet
  2. Bank Wire
  3. Moneybookers Skrills
  4. (SIM)
  5. Cash on delivery (COD)
  6. Payment by check
Andrey Dubina
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Andrey

1 comment

  1. Hi,
    I have a prestashop site. Currently i configured with Paypal USA/Canada, Now I want to know how do I accept payments from customers in European nations or Asian Nations.

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *