This commit is contained in:
nurmuhammet committed 2025-03-13 14:32:30 +05:00
1 parent 37b31b6ad1
commit c32db8dda3
2 files changed
+5 -17

No files matched your search

-17
View File
@@ -20,23 +20,6 @@ class Branch extends Model
*/
protected $table = 'branches';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'region',
'province_id',
'unique_code',
'billing_username',
'billing_password',
'address',
'phone_numbers',
'active',
];
/**
* Translatable fields
*
+5
View File
@@ -51,6 +51,11 @@ public function handle(ActionFields $fields, Collection $models)
$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',