debug callback url for billplz

This commit is contained in:
Omair Saleh
2022-10-13 15:54:56 +08:00
parent 66bbf9934c
commit 5ea4044e3f
@@ -88,6 +88,8 @@ class CallbackBillplzLogic
$packingList = $invoice->owner;
$order = $packingList->owner;
$status = ApprovalStatus::PENDING_VERIFICATION;
if($billPlz->state === 'paid') {
$status = ApprovalStatus::APPROVED;
}
@@ -118,4 +120,4 @@ class CallbackBillplzLogic
return $request->method() === 'POST' ? true : view('pages.payments_redirect', ['marking' => $order->reference, 'transaction' => $transaction, 'status' => $status]);
}
}
}