Quote:
mariane wrote:
great work Simon,does the module support many gateway systems? or only paypal?
Hi mariane thanks for the enquiry. It comes with the gateway for paypal but it is designed to have customised gateway plugins written for it so you can have things like worldpay, 2c0, westpac any bank with a gateway or most credit card processing services work with it.
There is the following folder classes
/modules/xpayment
|- class
|- gateway
The gateway class plugin belongs in a folder below the gateway class folder for example currently it looks like:
/modules/xpayment
|- class
|- gateway
|- paypal *4
|- language
| |-english
| |- paypal.php *1
|- paypal.php *2
|- gateway_info.php *3
*1 paypal.php - is a language file, it must adopt the same name as the folder that contains it in the gateway class folder.
*2 paypal.php - is the main plugin file for running the gateway the class in it adopts names from the folder (*4) and the extension of the the class name in this example is a class called
PaypalGatewaysPlugin.
It has 5 functions that need to be in all plugins called
goInvoiceObj, goActionCancel, goActionReturn, goIPN, getPaymentHTML the rest are stratum functions in this example.
*3 gateway_info.php - is the main information file for the gateway this includes fields for the gateway and options. (required)
*4 paypal - is the containing folder for the plugin.
If you where going to make a plugin for 2c0 lets say the folder structure would looks like:
/modules/xpayment
|- class
|- gateway
|- 2c0 *4
|- language
| |-english
| |- 2c0.php *1
|- 2c0.php *2
|- gateway_info.php *3
*1 2c0.php - is a language file, it must adopt the same name as the folder that contains it in the gateway class folder.
*2 2c0.php - is the main plugin file for running the gateway the class in it adopts names from the folder (*4) and the extension of the the class name in this example is a class called
2c0GatewaysPlugin.
It needs to have 5 functions that need to be in all plugins called
goInvoiceObj, goActionCancel, goActionReturn, goIPN, getPaymentHTML the rest is upto the developer.
*3 gateway_info.php - is the main information file for the gateway this includes fields for the gateway and options. (required)
*4 2c0 - is the containing folder for the plugin.
If you where going to make a plugin for WorldPay lets say the folder structure would looks like:
/modules/xpayment
|- class
|- gateway
|- worldpay *4
|- language
| |-english
| |- worldpay.php *1
|- worldpay.php *2
|- gateway_info.php *3
*1 worldpay.php - is a language file, it must adopt the same name as the folder that contains it in the gateway class folder.
*2 worldpay.php - is the main plugin file for running the gateway the class in it adopts names from the folder (*4) and the extension of the the class name in this example is a class called
WorldpayGatewaysPlugin.
It needs to have 5 functions that need to be in all plugins called
goInvoiceObj, goActionCancel, goActionReturn, goIPN, getPaymentHTML the rest is upto the developer.
*3 gateway_info.php - is the main information file for the gateway this includes fields for the gateway and options. (required)
*4 worldpay - is the containing folder for the plugin
So yes it is designed for other gateways apart from paypal.