This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
gateway_integration [2012/05/11 14:04] admin created |
gateway_integration [2012/05/11 14:23] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== API for 3rd party Payment Gateways integration. ====== | ====== API for 3rd party Payment Gateways integration. ====== | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Implementing a Payment Gateway requires PHP knowledge and is not part of support, this documentation is written for programmers. Already available Gateways can be seen [[reverse:payment_plugins|here]]. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | The payment gateway folder and files will have to be located in **//[SITE_ROOT]\administrator\components\com_rbids\thefactory\payments\plugins\gateways\//** | ||
+ | |||
+ | \\ | ||
+ | |||
+ | The main folder will be named "pay_mygateway" and contain: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * controller.php (gateway logic and frontend form) | ||
+ | * form.xml (the admin configuration form) | ||
+ | * logo.png (optional) | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ===== controller.php ===== | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Must contain: | ||
+ | |||
+ | <code php> | ||
+ | defined('_JEXEC') or die('Restricted access'); | ||
+ | |||
+ | require_once(realpath(dirname(__FILE__).DS.'..'.DS.'..'.DS.'..'.DS.'classes'.DS.'gateways.php')); | ||
+ | </code> |