Working on payment gateways

This commit is contained in:
Hillel Coren 2018-03-16 10:04:43 +02:00
parent b243a41c05
commit 3776df9f5c

View File

@ -8,7 +8,7 @@
Stripe.setPublishableKey('{{ $accountGateway->getPublishableKey() }}'); Stripe.setPublishableKey('{{ $accountGateway->getPublishableKey() }}');
$(function() { $(function() {
var countries = {!! Cache::get('countries')->pluck('iso_3166_2','id') !!}; 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) { if ($('[name=plaidAccountId]').length) {
return false; return false;
} }