mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:44:29 -04:00
Ensure WePay state is two letter code
This commit is contained in:
parent
dab6053435
commit
852d97fd27
@ -6,6 +6,7 @@
|
|||||||
<script type="text/javascript" src="https://static.wepay.com/min/js/tokenization.v2.js"></script>
|
<script type="text/javascript" src="https://static.wepay.com/min/js/tokenization.v2.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
|
$("#state").attr('maxlength', '2');
|
||||||
var countries = {!! Cache::get('countries')->pluck('iso_3166_2','id') !!};
|
var countries = {!! Cache::get('countries')->pluck('iso_3166_2','id') !!};
|
||||||
WePay.set_endpoint('{{ WEPAY_ENVIRONMENT }}');
|
WePay.set_endpoint('{{ WEPAY_ENVIRONMENT }}');
|
||||||
var $form = $('.payment-form');
|
var $form = $('.payment-form');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user