Prev   Next

Chapter 4. Creating or modifying Extensions

Table of Contents

4.1. Payment Modules
4.2. Shipping Modules

Besides core modules, you can also add shipping and payment modules into VM. The concept of both - shipping and payment modules is to provide an API with a defined specification (similar to an interface), where the modules can plug themselves in. The modules implement the required functions and thus can communicate with the Shop and give their services.

VirtueMart has a lot of predefined payment methods. Some of these payment methods are controlled by special "payment modules", which are class files.

Example:

  • Payment Method: “Credit Card”, Payment Module: ps_authorize (Class File: ps_authorize.php)

    Handles credit card authentication with the authrize.net server.

  • Payment Method “Cash on delivery”, Payment Module: ps_payment (ps_payment is an empty payment module)

    No business logic needed for this kind of payment.