From c32db8dda3fa46e63790fdd5a1dc899f98accd07 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Thu, 13 Mar 2025 14:32:30 +0500 Subject: [PATCH] wip --- app/Models/Branch/Branch.php | 17 ----------------- app/Nova/Actions/CheckOnlinePayment.php | 5 +++++ 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/app/Models/Branch/Branch.php b/app/Models/Branch/Branch.php index 7ad512d..a346805 100644 --- a/app/Models/Branch/Branch.php +++ b/app/Models/Branch/Branch.php @@ -20,23 +20,6 @@ class Branch extends Model */ protected $table = 'branches'; - /** - * The attributes that are mass assignable. - * - * @var array - */ - protected $fillable = [ - 'name', - 'region', - 'province_id', - 'unique_code', - 'billing_username', - 'billing_password', - 'address', - 'phone_numbers', - 'active', - ]; - /** * Translatable fields * diff --git a/app/Nova/Actions/CheckOnlinePayment.php b/app/Nova/Actions/CheckOnlinePayment.php index 902d1fd..d9244af 100644 --- a/app/Nova/Actions/CheckOnlinePayment.php +++ b/app/Nova/Actions/CheckOnlinePayment.php @@ -51,6 +51,11 @@ class CheckOnlinePayment extends Action $password = $relatedResource->branch->billing_password; } + if ($onlinePaymentResource->api_client == 'billing_sber_username') { + $username = $relatedResource->branch->billing_sber_username; + $password = $relatedResource->branch->billing_sber_password; + } + if ($username == '') { return Action::modal('modal-response', [ 'title' => 'HALKBANK API',