wip
This commit is contained in:
1 parent
e5b600df5b
commit
e6488343c1
2 files changed
+23
-14
No files matched your search
@@ -34,6 +34,15 @@ public function visaMaster(OnlinePaymentStoreRequest $request): View
|
||||
/** @var \App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrderItem */
|
||||
$resource = $data['resource'];
|
||||
|
||||
if ($data['success'] === true) {
|
||||
info($response);
|
||||
// OnlinePaymentRepo::syncWithBilling(
|
||||
// uuid: $request->orderId,
|
||||
// bank_code: $bank->unique_code,
|
||||
// terminal_id:
|
||||
// );
|
||||
}
|
||||
|
||||
return view(OnlinePaymentRepo::statusView(), $data);
|
||||
}
|
||||
|
||||
|
||||
@@ -374,22 +374,22 @@ public function fields(NovaRequest $request): array
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
return [
|
||||
// MakePaymentNovaVisaMaster::make()
|
||||
// ->icon('credit-card')
|
||||
// ->sole()
|
||||
// ->canSee(function ($request) {
|
||||
// /** @var VisaMasterPaymentOrderModel $order */
|
||||
// $order = $this->resource;
|
||||
MakePaymentNovaVisaMaster::make()
|
||||
->icon('credit-card')
|
||||
->sole()
|
||||
->canSee(function ($request) {
|
||||
/** @var VisaMasterPaymentOrderModel $order */
|
||||
$order = $this->resource;
|
||||
|
||||
// if (in_array($order->status, [
|
||||
// OrderRepo::PENDING,
|
||||
// OrderRepo::CANCELLED,
|
||||
// ])) {
|
||||
// return false;
|
||||
// }
|
||||
if (in_array($order->status, [
|
||||
OrderRepo::PENDING,
|
||||
OrderRepo::CANCELLED,
|
||||
])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// return true;
|
||||
// }),
|
||||
return true;
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user