I'm working on using windmill as our
I'm working on using windmill as our platform for all integrations of our ERP with external APIs. We need to integrate with stripe for credit card processing. We want to use the stripe checkout form, which means redirecting to their URL after running some code to create the checkout session. I built a script that is triggered at this URL:
https://app.windmill.dev/api/w/velvac-ifs-integrations/jobs/run_wait_result/p/f/stripe/internal_checkout
With token-in-query, I should be able to just hit this from a link in the browser. But since I do not have access to the response object in that typescript function, I do not see how I can redirect to the URL for the stripe checkout. Is there a way to get access to the response object so I can do a redirect?
1 Reply
FWIW - if you want to do this, you can use a meta tag style HTML redirect as your return from a windmill webhook. This allows you to hit the endpoint, do some stuff (like create a stripe checkout session), then force the browser to refresh to the given URL (which in my case will include the newly created sessionId). Here's all that is required to get the redirect to happen: