Documentation

Features

Differences

This shows you the differences between the selected revision and the current version of the page.

development:gateways 2008/08/24 09:58 development:gateways 2008/10/24 10:06 current
Line 1: Line 1:
====== Payment Gateways ====== ====== Payment Gateways ======
 +Instructions for adding a new payment gateway. All payment gateway code is located in includes/paymentapi/ folder.  Inside this folder you will need to create a new folder to house your custom code created below.
===== Config.php ===== ===== Config.php =====
Line 119: Line 120:
<code php> <code php>
if($Orders->updateOrder($orderid, 'Y')) if($Orders->updateOrder($orderid, 'Y'))
- +
- return TRUE; + return TRUE; 
- +
- else +else 
- +
- //an error occured + //an error occured 
- return "Payment was made but your order has not been approved. Please contact support for help."; + return "Payment was made but your order has not been approved. Please contact support for help."; 
- }+}
</code> </code>
Line 132: Line 133:
As you can see creating a custom gateway is not a simple process and as such is not supported by us. A lot of things can go wrong and it will take some trial and error getting it setup properly. As you can see creating a custom gateway is not a simple process and as such is not supported by us. A lot of things can go wrong and it will take some trial and error getting it setup properly.
 +
 +===== External Resources  =====
 +  * [[http://php.net|PHP Website]]
 +  * [[http://www.68classifieds.com/forums|68 Classifieds Forums]]
 +
 +

Have more questions? Visit our community forums.