Hi there fellow bubblers,
I am in the process of setting up Stripe webhook for my app, and I have been facing an issue that I need your help with.
My business model is subscription-based, so I need to be informed when invoice payments fail, subscribers’ subscription status changes to ‘past_due’, ‘unpaid’ etc., and therefore I am trying to set up webhook.
I went through Bubble’s and Stripe’s documentation to understand how it was required to be configured, alongside applying learnings from other Stripe integration related questions asked here in the forum earlier, and followed the steps accordingly.
Now the issue I am facing is that when I send the test webhook from within Stripe I get the following error: “Test webhook error: 400”.
The actual response is as follows: “{“statusCode”:400,“message”:"Stripe error No such event: evt_00000000000000”}”.
My understanding is that had it been the case of condition not being met then Bubble still would have passed 200 response, because I have that setting check-marked (indicated in the screen shot below). Has anyone here faced the same issue earlier or if you know what might be causing this error?
For your reference, I have attached the screenshot of an example API workflow that I am testing the webhook with - it’s identical to what @emmanuel shared in one of the older posts (API Endpoint - Use Stripe Webhooks)
Also, while going through the Bubble documentation I noted that the new API version was introduced recently, and so I am using 1.1 in the URL. My URL looks like this: https://appname.bubbleapps.io/version-test/api/1.1/wf/endpoint_name
Any help will be very much appreciated.