mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6178 from beganovich/v5-0106-wepay-zip
WePay: Initialize Javascript with the postcode after fields checking
This commit is contained in:
commit
f4eb777a03
@ -71,5 +71,13 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('gateway_footer')
|
@section('gateway_footer')
|
||||||
|
<script>
|
||||||
|
Livewire.on('passed-required-fields-check', (event) => {
|
||||||
|
if (event.hasOwnProperty('client_postal_code')) {
|
||||||
|
document.querySelector('meta[name=client-postal-code]').content = event.client_postal_code;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<script src="{{ asset('js/clients/payments/wepay-credit-card.js') }}"></script>
|
<script src="{{ asset('js/clients/payments/wepay-credit-card.js') }}"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user