Created
April 20, 2012 11:28
-
-
Save tiagocpontesp/2427910 to your computer and use it in GitHub Desktop.
bla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$nzshpcrt_gateways[$num]['name'] = 'QuickPay'; | |
$nzshpcrt_gateways[$num]['internalname'] = 'QuickPay'; | |
$nzshpcrt_gateways[$num]['function'] = 'nzshpcrt_quickpay_gateway'; | |
$nzshpcrt_gateways[$num]['form'] = "nzshpcrt_quickpay_form"; | |
$nzshpcrt_gateways[$num]['submit_function'] = "nzshpcrt_quickpay_form_submit"; | |
// Set default values. | |
if(!get_option('quickpay_language') <> '') | |
update_option('quickpay_language', 'en'); | |
if(!get_option('quickpay_currency') <> '') | |
update_option('quickpay_currency', 'EUR'); | |
if(!get_option('quickpay_keepbasket') <> '') | |
update_option('quickpay_keepbasket', '0'); | |
if(!get_option('quickpay_autocapture') <> '') | |
update_option('quickpay_autocapture', '0'); | |
if(!get_option('quickpay_testmode') <> '') | |
update_option('quickpay_testmode', '0'); | |
// Displays the settings from within the WPEC control panel. | |
function nzshpcrt_quickpay_form() | |
{ | |
// Get stored values. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment