/sample-merchant-gateway

Sample Merchant Payment Gateway Module for WHMCS

Primary LanguagePHPMIT LicenseMIT

WHMCS Sample Merchant Gateway Module

Summary

Payment Gateway modules allow you to integrate payment solutions with the WHMCS platform.

There are two types of gateway module:

  • Third Party Gateways - these are payment solutions where checkout occurs on a remote website, usually hosted by the payment gateway themselves.

  • Merchant Gateways - these are payment solutions where credit card details are collected - usually within the WHMCS application, though more and more often this will be done remotely, typically via an iframe, with a page hosted remotely by the payment gateway enabling tokenised storage.

The sample files here demonstrate how we suggest a Merchant Payment Gateway module for WHMCS be structured and implemented.

For more information, please refer to the documentation at: https://developers.whmcs.com/payment-gateways/

Recommended Module Content

The recommended structure of a merchant gateway module is as follows.

 modules/gateways/
  |- callback/merchantgateway.php
  |  merchantgateway.php

Minimum Requirements

For the latest WHMCS minimum system requirements, please refer to https://docs.whmcs.com/System_Requirements

We recommend your module follows the same minimum requirements wherever possible.

Useful Resources

WHMCS Limited