diff --git a/v5-working.php b/v5-working.php new file mode 100644 index 0000000..0428b95 --- /dev/null +++ b/v5-working.php @@ -0,0 +1,444 @@ + '186691761268d6f85579c84532234998155044887968d6f85579c891167595247', + 'base_url' => 'https://pay.wifibills.com/api', + 'gateway_name' => 'PipraPay' +]; + +// Status mapping: 1 = Unpaid, 2 = Paid, 3 = Failed, 4 = Cancelled +define('PIPRAPAY_STATUS_UNPAID', 1); +define('PIPRAPAY_STATUS_PAID', 2); +define('PIPRAPAY_STATUS_FAILED', 3); +define('PIPRAPAY_STATUS_CANCELLED', 4); + +function piprapay_validate_config() +{ + global $piprapay_config; +} + +function piprapay_show_config() +{ + global $ui, $piprapay_config; + + $ui->assign('_title', $piprapay_config['gateway_name'] . ' - Payment Gateway'); + + echo ' +
This payment gateway is pre-configured and ready to use.
+