*/ protected function getFormActions(): array { return [ $this->getCreateFormAction(), $this->getCancelFormAction(), ]; } protected function getRedirectUrl(): string { $defaultUrl = $this->getResource()::getUrl('index'); /** @var \App\Modules\CardOrder\Models\CardOrder */ $record = $this->record; $onlinePayment = CardOrderRepository::make() ->createOnlinePaymentOrder($record); return $onlinePayment->successful() ? $onlinePayment->paymentLink() : $defaultUrl; } }