From c7bf4b630b35b64e710e74699e68bf846244148e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 6 Oct 2022 10:24:43 +1100 Subject: [PATCH] Improve Stripe ACH Payments with microdeposits --- .../portal/ninja2020/gateways/stripe/ach/pay.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/portal/ninja2020/gateways/stripe/ach/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/ach/pay.blade.php index 31e56758f9d0..784aa182d0c2 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/ach/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/ach/pay.blade.php @@ -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' } });