From 37a92fc853914b3ab98fcf6557051a19ed8aee77 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sat, 4 Jun 2016 22:11:46 +0300 Subject: [PATCH] Fix for online payments page --- resources/views/accounts/account_gateway.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index f195d2849ab8..af70957e2d3e 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -147,7 +147,8 @@ ->class('creditcard-types') ->addGroupClass('gateway-option') !!} - @if(isset($accountGateway) && $accountGateway->gateway_id == GATEWAY_WEPAY) + + @if(!isset($accountGateway) && $accountGateway->gateway_id == GATEWAY_WEPAY) @if ($account->getGatewayByType(PAYMENT_TYPE_DIRECT_DEBIT, $accountGateway)) {!! Former::checkbox('enable_ach') ->label(trans('texts.ach')) @@ -161,7 +162,7 @@ ->text(trans('texts.enable_ach')) !!} @endif - @elseif(!isset($accountGateway) || $accountGateway->gateway_id == GATEWAY_STRIPE) + @elseif(!isset($accountGateway) && $accountGateway->gateway_id == GATEWAY_STRIPE)
@if ($account->getGatewayByType(PAYMENT_TYPE_DIRECT_DEBIT, isset($accountGateway)?$accountGateway:null)) {!! Former::checkbox('enable_ach')