update pagination livechat

This commit is contained in:
2024-05-17 14:00:24 +07:00
parent 504f152876
commit ba55866203
5 changed files with 37 additions and 18 deletions

View File

@@ -335,6 +335,12 @@ class DuitkuController extends Controller
} else if ($notif->resultCode == "01") {
// Action Failed
$livechat = Livechat::where('uuid', $notif->merchantOrderId)->first();
// Update status pembayaran
$livechat->payment_method = $notif->paymentCode;
$livechat->status = 7; // failed payment
$livechat->save();
return response()->json(['message' => 'User Gagal melakukan pembayaran']);
}