1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Hide "Save payment method" on Stripe credit card authorize page

This commit is contained in:
Benjamin Beganović 2021-05-29 13:35:06 +02:00
parent 51ae534b94
commit 945250dab8
2 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,7 @@
{{ ctrans('texts.credit_card') }}
@endcomponent
@include('portal.ninja2020.gateways.stripe.includes.card_widget')
@include('portal.ninja2020.gateways.stripe.includes.card_widget', ['show_save_method' => false])
@component('portal.ninja2020.gateways.includes.pay_now', ['id' => 'authorize-card'])
{{ ctrans('texts.add_payment_method') }}
@ -40,4 +40,4 @@
@section('gateway_footer')
<script src="https://js.stripe.com/v3/"></script>
<script src="{{ asset('js/clients/payments/stripe-credit-card.js') }}"></script>
@endsection
@endsection

View File

@ -12,4 +12,6 @@
@endunless
</div>
@include('portal.ninja2020.gateways.includes.save_card')
@unless(isset($show_save_method) && $show_save_method == false)
@include('portal.ninja2020.gateways.includes.save_card')
@endunless