This commit is contained in:
2025-03-13 14:32:30 +05:00
parent 37b31b6ad1
commit c32db8dda3
2 changed files with 5 additions and 17 deletions

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
*

View File

@@ -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',