#Anton Dekhtyar-ach-redirect
1 messages · Page 1 of 1 (latest)
Hey, can you share a pi_xxx?
If you're passing payment_method_types when creating your PI and only passing us_bank_account then the Payment Element won't offer other options
looks like you're doing what my colleague described. I need to check if ACH requires a redirect or not.
but can I ask why you don't want a redirect? I mean after the customer pays you have to show them a success page(as you mention yourself in the question) so why not just use the always redirect and be able to support multiple payment methods?
I have to redirect it to a separately created page, waiting page. in order to check the status. depending on the status, I redirect from this page to the successful payment page or back to the payment page. without return_url, I can either leave it on the payment page and show a notification on error, or redirect to the successful payment page
it turns out I can specify return_url : ''
redirect: 'if_required', and handle paymentIntent in paymentConfirm response
yes, I think that works for ACH since it doesn't require a redirect to a bank page(it can show a popup for bank authentication instead).
the only thing that confuses me is that when testing in Test Institution, I always get paymentIntent.status = processing no matter what scenario I choose. when redirecting, apparently he had time to change and work in accordance with the scenario.
that's expected since ACH takes multiple days to clear.
at the time of looking at the PaymentIntent after the customer has entered information in the PaymentElement, it's going to be processing
curiously. when i Select an account: Failure in Test Institution with redirect i get 'requires_payment_method' but without redirect i get 'processing'
not sure really without digging into an example
tell me then how to get errors in ACH correctly if we get "processing" all the time
listen for webhooks on your backend since it's an asynchronous payment method : https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#web-confirm-paymentintent-succeeded