Skip to content

Commit

Permalink
Fix view order if it not unpaid
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnux committed Aug 2, 2024
1 parent 82904b9 commit de85d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/controllers/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
r2(U . "order/package", 'w', Lang::T("Payment not found"));
}
// jika url kosong, balikin ke buy, kecuali cancel
if (empty($trx['pg_url_payment']) && $routes['3'] != 'cancel') {
if ($trx['status'] == 1 && empty($trx['pg_url_payment']) && $routes['3'] != 'cancel') {
r2(U . "order/buy/" . (($trx['routers_id'] == 0) ? $trx['routers'] : $trx['routers_id']) . '/' . $trx['plan_id'], 'w', Lang::T("Checking payment"));
}
if ($routes['3'] == 'check') {
Expand Down

0 comments on commit de85d30

Please sign in to comment.