wip
This commit is contained in:
@@ -34,6 +34,15 @@ class OnlinePaymentController extends Controller
|
|||||||
/** @var \App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrderItem */
|
/** @var \App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrderItem */
|
||||||
$resource = $data['resource'];
|
$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);
|
return view(OnlinePaymentRepo::statusView(), $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -374,22 +374,22 @@ class NovaVisaMasterPaymentOrder extends Resource
|
|||||||
public function actions(NovaRequest $request): array
|
public function actions(NovaRequest $request): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
// MakePaymentNovaVisaMaster::make()
|
MakePaymentNovaVisaMaster::make()
|
||||||
// ->icon('credit-card')
|
->icon('credit-card')
|
||||||
// ->sole()
|
->sole()
|
||||||
// ->canSee(function ($request) {
|
->canSee(function ($request) {
|
||||||
// /** @var VisaMasterPaymentOrderModel $order */
|
/** @var VisaMasterPaymentOrderModel $order */
|
||||||
// $order = $this->resource;
|
$order = $this->resource;
|
||||||
|
|
||||||
// if (in_array($order->status, [
|
if (in_array($order->status, [
|
||||||
// OrderRepo::PENDING,
|
OrderRepo::PENDING,
|
||||||
// OrderRepo::CANCELLED,
|
OrderRepo::CANCELLED,
|
||||||
// ])) {
|
])) {
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// return true;
|
return true;
|
||||||
// }),
|
}),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user