Ensure account gateway fields array is initialized
This commit is contained in:
parent
6a5b189912
commit
bc04d66371
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ class AccountGatewayController extends BaseController
|
|||
$currentGateways = $account->account_gateways;
|
||||
$gateways = Gateway::where('payment_library_id', '=', 1)->orderBy('name')->get();
|
||||
|
||||
if ($accountGateway) {
|
||||
$accountGateway->fields = [];
|
||||
}
|
||||
|
||||
foreach ($gateways as $gateway) {
|
||||
$fields = $gateway->getFields();
|
||||
if (! $gateway->isCustom()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue