#Arvind hariharan

1 messages · Page 1 of 1 (latest)

azure dirgeBOT
candid pier
#

Sure, how can we help?

tired raptor
#

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?

candid pier
#

Yeah, and sorry, my colleague will be here soon

azure dirgeBOT
tired raptor
#

okay

#

can you please help here

simple hemlock
#

Hey! Taking over for my colleague. Let me catch up.

tired raptor
#

okay sure

simple hemlock
#

Just to make sure I understand your ask correctly, here. you are testing Stripe products or you are testing your integration ?

tired raptor
#

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?

simple hemlock
#

I'm not sure I understand what constraint exactly you are facing...

tired raptor
#

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?

#

?

simple hemlock
#

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 ?

tired raptor
#

two different payment intents

simple hemlock
#

Sorry, but I still don't understand the issue here.

#

can you share your test scenarios ?