API for 3rd party Payment Gateways integration (for Auction Factory v2.x.x).

We will explain this using the Moneybookers Plugin as a sample.

First we create the php file containing the Payment Gateway processing Class. The file and the class must be named identically (of course the file must have a .php extension). The file and classname must start with ‘pay_’ and must be located in the plugins/payment folder of the Auction Factory component folder (components/com_bids).

The class must inherit payment_object (located in payment_object.php). Don’t forget to include the /plugins/payment /payment_object.php file at the top of the class file.

Following Class variables are inherited, and have to be adapted:

 var $classname="payment_object";  
 var $classdescription="generic Payment method";

You have to replace these in your class with the appropriate values ($classname MUST contain the name of your class!) +

The Payment class inherits and can overwrite the following methods:

loadPluginLanguage($filename=null)

ipn($d)

checkout($d)

show_payment_form($order_id,$item_description, $itemname,$quantity,$price,$currency,$return_url=null)

Parameters are:

$order_id unique identifier for the transaction.
$item_description the description of the product (payment item) the user is paying for. You should display this in order to confirm this with the user.
$itemname this is the PAYMENT ITEM internal name. YOU have to pass it on, so that it gets back per IPN. If no IPN is needed, then you can ignore it
$quantity the amount of item the user purchases; most time it is one.
$price the item price.
$currency the currency you set up in payment item admin.
$return_url the url to pass the gateway as return url after payment was processed. (IT IS NOT THE IPN URL).

show_admin_config()

      //
  **[HERE YOUR CUSTOM VARIABLES]**
      //
      //
      //classname;?>"/>
      //

save_admin_config()

getLogo()