Update payment method form submission delay

This commit is contained in:
Benjamin Beganović 2024-01-09 16:07:18 +01:00
parent ee58b4c0cc
commit fb917e8496

View File

@ -14,6 +14,10 @@
document.getElementById('payment_method_id').value = paymentMethodId;
}
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
Livewire.on('beforePaymentEventsCompleted', () => {
setTimeout(() => {
document.getElementById('payment-method-form').submit()
}, 2500);
});
</script>
@endpush