#Anton Dekhtyar-ach-redirect

1 messages · Page 1 of 1 (latest)

lusty stream
#

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

sterile fulcrum
#

few mins

#

pi_3LaFZCASzn8WTmrl2qpaSlVC

lilac adder
#

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?

sterile fulcrum
#

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

sterile fulcrum
#

it turns out I can specify return_url : ''
redirect: 'if_required', and handle paymentIntent in paymentConfirm response

lilac adder
#

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).

sterile fulcrum
#

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.

lilac adder
#

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

sterile fulcrum
#

curiously. when i Select an account: Failure in Test Institution with redirect i get 'requires_payment_method' but without redirect i get 'processing'

lilac adder
#

not sure really without digging into an example

sterile fulcrum
#

tell me then how to get errors in ACH correctly if we get "processing" all the time

lilac adder