moritz
moritz5mo ago

Stripe webhook testing - 500 error

I have a working production Stripe webhook trigger. I want to be able to test it as well so I imported it to Sandbox. In Sandbox mode however I am getting '500 - Internal' error. I suspect it is due to the live and not the test key being in the Stripe webhook in Buildship. But then: How do I test Stripe webhook triggers without opening up a new workflow? Any experience? Thank you!
No description
No description
3 Replies
Gaurav Chadha
Gaurav Chadha5mo ago
Hi @moritz We tested the Stripe webhook with the live account and found out it worked fine, and the reason it didn't work for you after you updated the secret from trial to live is that when you create a new workflow with the Stripe trigger (using the Stripe test secret key), this works fine and a webhook is created in stripe. After you updated the trigger to use a different secret key or live on and then redeployed it, the webhook is no longer being created/updated in Stripe. To make it work again, you can follow these steps: 1. Copy the existing workflow and create a new a new one from it by pasting it. 2. Add the new stripe secret key for the live account. 3. Redeploy the workflow. It should then work fine and trigger the Stripe webhook.
moritz
moritz5mo ago
Thank you. That was an issue I had, but sadly not the problem I am facing: I would like to use the same workflow for testing the trigger and using it live. But it appears that is only possible by duplicating a workflow one with a test key and one with a live key. That in turn means that any change will need to be carried over to live via manual adjustement of the workflow or another duplication. Do you see what I am getting at?
Gaurav Chadha
Gaurav Chadha5mo ago
Yeah, this makes sense. @Luis, do you have any suggestions we could make on the Stripe Webhook trigger to eliminate this?