diff --git a/resources/views/payments/credit_card.blade.php b/resources/views/payments/credit_card.blade.php index dd18c2410a..f7db0107b9 100644 --- a/resources/views/payments/credit_card.blade.php +++ b/resources/views/payments/credit_card.blade.php @@ -1,5 +1,23 @@ @extends('payments.payment_method') +@section('head') + @parent + + + +@stop + @section('payment_details') {!! Former::vertical_open($url) @@ -256,17 +274,4 @@ {!! Former::close() !!} - - @stop diff --git a/resources/views/payments/stripe/credit_card.blade.php b/resources/views/payments/stripe/credit_card.blade.php index 90f0df8016..6d517b2383 100644 --- a/resources/views/payments/stripe/credit_card.blade.php +++ b/resources/views/payments/stripe/credit_card.blade.php @@ -9,7 +9,7 @@ Stripe.setPublishableKey('{{ $accountGateway->getPublishableStripeKey() }}'); $(function() { var countries = {!! Cache::get('countries')->pluck('iso_3166_2','id') !!}; - $('.payment-form').submit(function(event) { + $('.payment-form').unbind('submit').submit(function(event) { if($('[name=plaidAccountId]').length)return; var $form = $(this);