wip
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user