phpnuxbill/system/controllers/callback.php

28 lines
531 B
PHP
Raw Normal View History

2022-09-10 13:17:38 +08:00
<?php
/**
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
**/
_auth();
$ui->assign('_system_menu', 'order');
$action = $routes['1'];
$user = User::_info();
$ui->assign('_user', $user);
require('system/autoload/Paymentgateway.php');
require('system/autoload/Recharge.php');
switch ($action) {
case 'xendit':
echo "done";
break;
case 'midtrans':
echo "done";
break;
case 'tripay':
2022-09-10 17:01:51 +08:00
echo '{"success": true}';
2022-09-10 13:17:38 +08:00
break;
default:
echo "not found";
}