#vignesh_vidyut

1 messages ยท Page 1 of 1 (latest)

nova bridgeBOT
mild kraken
#

Hi ๐Ÿ‘‹ ah, it looks like there is a mixup between the paragraphs in that section and the code snippet provided, thank you for raising that!

Does using stripe.confirmUsBankAccountSetup as shown in the code snippet work for you?

gleaming mantle
#

cool, that explains. Its working. So, the flow will be
-> Create a setupintent with cx id
-> Along with the setup intent secret, create a payment method and pass on both to stripe.confirmUsBankAccountSetup
-> This will be requires_action state

I'm clear till this. How do i verify this setupintent using microdeposits?

mild kraken
#

I believe those verifications are handled by an email that is generated and sent to the Customer, unless you've disabled those emails in your Stripe dashboard:
https://dashboard.stripe.com/settings/emails

If you've disabled emails and are building your own flow, then I think this is the verification function that you're looking for:
https://stripe.com/docs/api/customer_bank_accounts/verify
or if working with client-side code:
https://stripe.com/docs/js/setup_intents/verify_microdeposits_for_setup

Let me know if those don't do what you're looking for

gleaming mantle
#

When i save the bank using stripe.confirmUsBankAccountSetup i get a payment method (pm_) and not a bank account (ba_***). So how do i verify the payment method ?

mild kraken
#

I'm not sure offhand, do you get an error if you try to pass a Payment Method to that function?

nova bridgeBOT