Payment info

This commit is contained in:
Ibnu Maksum
2024-08-19 16:13:51 +07:00
parent e908ade918
commit d83c2ec037
4 changed files with 63 additions and 58 deletions

View File

@ -403,7 +403,7 @@ switch ($action) {
_log(Lang::T("Payment Gateway not set, please set it in Settings"));
r2(U . "home", 'e', Lang::T("Failed to create Transaction.."));
}
if (count($pgs) > 1) {
if (count($pgs) > 0) {
$ui->assign('pgs', $pgs);
if ($tax_enable === 'yes') {
$ui->assign('tax', $tax);
@ -416,13 +416,9 @@ switch ($action) {
$ui->display('user-ui/selectGateway.tpl');
break;
} else {
if (empty($pgs[0])) {
sendTelegram("Payment Gateway not set, please set it in Settings");
_log(Lang::T("Payment Gateway not set, please set it in Settings"));
r2(U . "home", 'e', Lang::T("Failed to create Transaction.."));
} else {
$_POST['gateway'] = $pgs[0];
}
sendTelegram("Payment Gateway not set, please set it in Settings");
_log(Lang::T("Payment Gateway not set, please set it in Settings"));
r2(U . "home", 'e', Lang::T("Failed to create Transaction.."));
}
case 'buy':
$gateway = _post('gateway');