This plugin will add CCBill Payment Gateway as an option into the WordPress plugin http://www.paidmembershipspro.com. The plugin will need to be stand alone and be coded to WordPress standards.
This is the steps for adding a Payment Gateway to PMPRO
Adding a New Gateway to PMPro
1. Create the gateway class file in /classes/gateways/
1. Copy the default [login to view URL] for a stub.
2. Filename should be class.pmprogateway_{gateway}.php
1. Edit /adminpages/[login to view URL]
1. Add the gateway as an option.
1. >PayPal Standard
1. Add a class (e.g. gateway_paypalstandard) to the tr of each payment field required for this gateway. This will tell the javascript to hide/show the appropriate fields when that gateway is selected.
2. For each field that should be included, update the conditional php code in the tr to check for your gateway before hiding the field. e.g.
1. >
1. Edit /includes/[login to view URL] to add the new gateway to the pmpro_is_ready() function
1. Add a conditional for the gateway to set the $pmpro_gateway_ready global if the required settings for that gateway are set.
1. If the Gateway is an offsite processor (like PayPal Express/Standard)
1. Add your gateway to these checks in /preheaders/[login to view URL]
1. [line 291] if($pmpro_requirebilling && $gateway != "paypalexpress" && $gateway != "paypalstandard")
2. [line 470] if($gateway == "paypalexpress" || $gateway == "paypalstandard")
3. Around line 565 of /preheaders/[login to view URL] add a check for your gateway to setup the member order object. Search for “if($gateway == “paypalexpress”)”
1. Add your gateway to these checks in /pages/[login to view URL]
1. [line 307] >
2. [line 499] >
1. Add code to show your checkout button and hide the others around line 638.
In the standard alone plugin the user will fill out the settings with their CCBill details:
CCBill Account Number
CCBill Sub Account Number
CCBill Form Name
CCBill Salt Encryption
CCBill Approval URL
See file for Hidden Fields sent to CCBill