Hide WePay credit card form if token billing is disabled

This commit is contained in:
Hillel Coren 2017-05-22 11:33:56 +03:00
parent b5ed7d9896
commit c433661d11

View File

@ -202,6 +202,9 @@
<p>&nbsp;<br/>&nbsp;</p>
@endif
@if ($accountGateway->isGateway(GATEWAY_WEPAY) && $account->token_billing_type_id === TOKEN_BILLING_DISABLED)
{{--- do nothing ---}}
@else
<div class="row">
<div class="col-lg-{{ ($accountGateway->gateway_id == GATEWAY_BRAINTREE) ? 12 : 8 }}">
@ -304,6 +307,7 @@
<div class='card-wrapper'></div>
</div>
</div>
@endif
<div class="col-md-12">
<div id="js-error-message" style="display:none" class="alert alert-danger"></div>