Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
galpratama committed Sep 27, 2020
2 parents 1c99b45 + dc16a37 commit b5a09a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/API/MidtransController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function callback(Request $request)
if ($status == 'capture') {
if ($type == 'credit_card'){
if($fraud == 'challenge'){
$transaction->status = 'CHALLENGE';
$transaction->status = 'PENDING';
}
else {
$transaction->status = 'SUCCESS';
Expand All @@ -53,13 +53,13 @@ public function callback(Request $request)
$transaction->status = 'PENDING';
}
else if ($status == 'deny') {
$transaction->status = 'FAILED';
$transaction->status = 'CANCELLED';
}
else if ($status == 'expire') {
$transaction->status = 'EXPIRED';
$transaction->status = 'CANCELLED';
}
else if ($status == 'cancel') {
$transaction->status = 'FAILED';
$transaction->status = 'CANCELLED';
}

// Simpan transaksi
Expand Down

0 comments on commit b5a09a3

Please sign in to comment.