Ash FrameworkAF
Ash Frameworkโ€ข8mo agoโ€ข
21 replies
ken-kost

Reactor and webhook

I'm trying out reactor, specifically for a payment flow. Before it, using stripity stripe, I created a session Stripe.Checkout.Session.create, redirected external session url. Then there's a webhook controller that constructs an event Stripe.Webhook.construct_event.
how would that work using reactor flow? :thinkies: I'm guessing capture payment step should handle the webhook part, but I'm not understanding how would I plug the two? Is this even a valid use case for reactor ๐Ÿ˜ฌ
Solution
You could have a resource that you call actions on that runs the reactor and saves the state after it halted and than have an update action that you can call that than runs the next part of the reactor with the saved state. and use the session id as the id for the resource
Was this page helpful?