1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01: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:
Benjamin Beganović 2021-07-02 02:23:41 +02:00 committed by GitHub
commit f4eb777a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,5 +71,13 @@
@endsection
@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>
@endsection