Initialize Javascript with the postcode after fields checking
This commit is contained in:
parent
857964f39a
commit
12611647bc
1 changed files with 10 additions and 0 deletions
|
|
@ -71,5 +71,15 @@
|
|||
@endsection
|
||||
|
||||
@section('gateway_footer')
|
||||
<script>
|
||||
Livewire.on('passed-required-fields-check', (event) => {
|
||||
if (event.hasOwnProperty('client_postal_code')) {
|
||||
console.log('Got POSTCODE');
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue