Improve Stripe ACH Payments with microdeposits

This commit is contained in:
David Bomba 2022-10-06 10:24:43 +11:00
parent 9bec6d458b
commit c7bf4b630b

View File

@ -207,8 +207,10 @@
gateway_response.value = JSON.stringify(paymentIntent);
document.getElementById('server-response').submit();
} else if (paymentIntent.next_action?.type === "verify_with_microdeposits") {
} else if (paymentIntent.next_action?.type === "verify_with_microdeposits" || paymentIntent.next_action?.type === "requires_source_action") {
errors.textContent = "You will receive an email with details on how to verify your bank account and process payment.";
errors.hidden = false;
document.getElementById('new-bank').style.visibility = 'hidden'
}
});