This commit is contained in:
2024-11-23 00:37:55 +05:00
parent 3853f65f5d
commit 6ebffad67b
3 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ namespace App\Modules\VisaMasterPaymentOrder\Nova\Resources;
use App\Models\Branch\Branch; use App\Models\Branch\Branch;
use App\Models\Payment\OnlinePaymentHistory; use App\Models\Payment\OnlinePaymentHistory;
use App\Modules\VisaMasterPaymentOrder\Nova\Resources\Item\NovaVisaMasterPaymentOrderItemAuth; use App\Modules\VisaMasterPaymentOrder\Nova\Resources\Item\NovaVisaMasterPaymentOrderItemAuth;
use App\Nova\Actions\CheckOnlinePayment;
use App\Nova\Resource; use App\Nova\Resource;
use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
@@ -159,7 +160,7 @@ class NovaVisaMasterPaymentOrderItem extends Resource
return Action::modal('modal-response', [ return Action::modal('modal-response', [
'title' => 'HALKBANK API', 'title' => 'HALKBANK API',
'html' => $this->resultHTML($response), 'html' => CheckOnlinePayment::resultHTML($response),
]); ]);
})->icon('server') })->icon('server')
->sole(), ->sole(),

View File

@@ -67,7 +67,7 @@ class CheckOnlinePayment extends Action
return Action::modal('modal-response', [ return Action::modal('modal-response', [
'title' => 'HALKBANK API', 'title' => 'HALKBANK API',
'html' => $this->resultHTML($response), 'html' => self::resultHTML($response),
]); ]);
} }
@@ -87,7 +87,7 @@ class CheckOnlinePayment extends Action
* *
* @param $response * @param $response
*/ */
public function resultHTML($response) public static function resultHTML($response)
{ {
$errorMessage = $response['ErrorMessage']; $errorMessage = $response['ErrorMessage'];

View File

@@ -7,7 +7,7 @@ parameters:
- app/ - app/
# Level 9 is the highest level # Level 9 is the highest level
level: 5 level: 9
# ignoreErrors: # ignoreErrors:
# - '#PHPDoc tag @var#' # - '#PHPDoc tag @var#'