CCBill Payment Gateway WordPress Plugin
$30-250 USD
Betales ved levering
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 [url removed, login to view] for a stub.
2. Filename should be class.pmprogateway_{gateway}.php
1. Edit /adminpages/[url removed, login to view]
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/[url removed, login to view] 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/[url removed, login to view]
1. [line 291] if($pmpro_requirebilling && $gateway != "paypalexpress" && $gateway != "paypalstandard")
2. [line 470] if($gateway == "paypalexpress" || $gateway == "paypalstandard")
3. Around line 565 of /preheaders/[url removed, login to view] 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/[url removed, login to view]
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
Prosjekt-ID: #4928505