#nick_webhooks-cau

1 messages ¡ Page 1 of 1 (latest)

rose gladeBOT
#

👋 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/1485660169135198312

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hollow valve
#

Hello, yes for all four events will send you a PaymentMethod object. So they will be structured the same. Looking into whether it is possible to trigger a payment_method.automatically_updated event in test mode though it may not be.
I think fixtures just run pre-defined API calls so they likely won't be able to trigger it. This may be a thing where you need to make a mock an event body or object in your test handling code.

cedar mural
#

Okay thanks. One more question related to this. Is that webhook locked behind the CAU feature? If so, is this automatically enabled?

hollow valve
#

It is triggered for CAU, no other times that it is emitted that I am aware of. And yep should be on by default

#

And unfortunately it looks like there isn't a way to trigger the event in test mode. So I think mocking it in the part of your code that you want to test is the best option at the moment.

cedar mural
#

Okay thank you for your help!

rose gladeBOT