#Arvind hariharan
1 messages · Page 1 of 1 (latest)
Sure, how can we help?
Hi i am working on writing integration test cases for Stripe ACH - us_bank_account payment method
I was able to write test case for a micro deposit verification and was able to assert successfully
However i need to understand how do i write for instant verification
because if i set payment method as us_bank_account and create a payment intent it still goes through the rout eof micro deposit verifciation
And if i use the verification method as INSTANT and set in payment method options i am not able to confirm the payment intent as it throws an error saying that it needs a payment method id attched
and i think we cannot attach both payment method id as us_bank_account and set verification method simultaneously in the same request right?
So need some help here as to how can i go about this
as per this doc they say to set verification method as instant. But how do i confirm the payment intent without the payment method?
you there?
Yeah, and sorry, my colleague will be here soon
Hey! Taking over for my colleague. Let me catch up.
okay sure
Just to make sure I understand your ask correctly, here. you are testing Stripe products or you are testing your integration ?
testing my integration code for Stripe ACH us_bank_account for instant and micro deposit verifications
It seems if i set the payment method to us_bank_account, its always going through the micro deposit verification flow and getting requires action as payment intent status once confirmed
But how do i test the instant verifciation flow?
as i mentioned i cannot use both payment method id as us_bank_account and set the verification method as INSTANT
and if i do not set the payment method ID then confirm payment intent throws an exception
so need to understand is there any alternative way that i can test the instant verification? or how do i test this process?
you there?
Yes I'm with you, checking...
When using these account numbers, you should be abe to test instant verification
https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#test-account-numbers
https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API#test-integration:~:text=To test scenarios with instant verifications%2C mimic different scenarios for ACH charges by selecting the test bank account for the use case you want to test.
You can choose the verification_method instant or microdeposits
I'm not sure I understand what constraint exactly you are facing...
i am using the same account numbers.
i am not able to confirm the payment intent if i do not set payment method id and use only INSTANT verification as payment method options
so is it a mandatory to set the payment method id while confirming payment intent?
?
so is it a mandatory to set the payment method id while confirming payment intent?
Yes, you need a PaymentMethod when confirming a PaymentIntent.
Are you creating two different PaymentIntent in your test scenarios one for Instant and another for Micro deposit ?
two different payment intents