wip
This commit is contained in:
@@ -34,7 +34,9 @@ class RetryNovaCardOrderPayment extends Action
|
||||
*/
|
||||
public function authorizedToRun(Request $request, $model)
|
||||
{
|
||||
$this->authorizedToRunAction = ! $model->paid && $model->status === OrderRepo::PENDING;
|
||||
/** @var \App\Models\Order\Card\CardOrder */
|
||||
$cardOrder = $model;
|
||||
$this->authorizedToRunAction = ! $cardOrder->paid && $cardOrder->status === OrderRepo::PENDING;
|
||||
|
||||
return $this->authorizedToRunAction;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user