#tobewisebeforeiamold_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1480980318243655893
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there,
can you give me a little bit more context? What is your business flow and what you are trying to achieve?
Sure! We use Node + stripe-js and recently we had a Chase FCA account payment fail due to a deactivated TAN and we didn't handle it well. So I'm trying to fix that.
And while I'm in there I thought I'd also handle pay-to account TAN failures as well.
On a broader level, we are a plaform that lets vendors send invoices to customers, and lets those customers pay those invoices
Ok, to answer the first question, yes it is safe to do that. When receivng the event with a deactivated payment method, it is recommend to detach, create a new payment method and attach that new PM.
Great! So then I just need to know how to test my handling of account.external_account.updated for a pay-to account. Any tips for me there?
Hm, I don't think we have a guide specifically for that case but let me do some digging...
Just to clarify, the second question is about paying out to TAN accounts on a connected account, correct? I have to admit that I am not super familiar with TAN, so I just want to make sure that what I read right now applies correctly to your use case
Meaning, the TAN would be for a Financial Connection as en External Bank Account on a Connect Account
Ya, that sounds right to me. I also am not well versed in TANs, but we use connect accounts as our pay-to accounts, so that sounds right to me.
So we'd need a way to trigger that account.external_account.updated for some pay-to account in our test account. That was what I was aiming for at least
So from I am reading it basically should work the same way. We also have this doc https://docs.stripe.com/financial-connections/testing#simulating-tokenized-account-number-behavior on how to simulate TAN behavior.
The flow would be:
- Complete a Financial Connections session with the "Tokenized Account Numbers" institution
- Select one of the test accounts (likely "Immediately Expiring Tokenized Account Number")
- Create an External Bank Account from the Financial Connections Account (instead of a PaymentMethod)
- The TAN deactivation should trigger the account.external_account.updated webhook
Oh, we add the pay-to account differently...I should have looked ho how we do that. I was hoping there was a Stripe CLI command I could run or a button in the dahsboard I could click. We add the pay-to account via account number/routing number, but I don't remember the Stripe API/node method we call. One sec
Is there an "Immediately Expiring" account number/routing number I could use?
I am looking but as far as I know, we don't have a account numbers for triggering TAN deactivation
Shoot...I can also call stripe.accounts.update with some custom params if that helps. Any way you can think of that I can use stripe.accounts.update to trigger that event that you can think of?
Oh wait a minute, do you just want to trigger the event, to test if your webhook controller handles the event correctly?
Ya, I just want to trigger the webhook event, and have that even have all of the right data for the account in it, except make it look like the TAN expired. We typically use the 001111111 01234567890 (that may be the wrong numbers, but the success account/routing numbers but they're something like that), but have the webhook get a account.external_account.updated that makes it look like that account uses TANs and the TAN is deactivated
For a moment I thought about triggering the event through the CLI but it seems like that the event account.external_account.updated is not supported for this ๐คฆโโ๏ธ
Ya, I asked the Stripe AI and it said "run this in the CLI" and I did and the CLI told me it wasn't supported ๐
It seems like there is no other way to test this outside of what I described
Shoot, OK, well thank you for looking! Just to better relay this to our team: if we wanted to be able to test payout account issues like this, we'd need to use the client-side @stripe/stripe-js and @stripe/react-stripe-js methods for adding pay-to account similarly to how we use that to allow customers to add payment accounts? Is that right?
Yes!
Awesome, thank you for confirming! I'll pass that along to the team. Thanks for your help today!