Idenfy and Stripe Webhook support for circle server #1

Open
opened 2025-07-08 19:03:45 +00:00 by timur · 1 comment
Owner

If we want to use rhai flows for registration as issued in #2, we need a mechanism to push data to the worker upon the receiving of a callback. Our existing ws server for circles receives rhai scripts, authenticates the script caller, and dispatches the script to be executed by the worker in the context of a specific circle. We need to augment our existing server to also be able to authenticate callbacks received in webhooks, and dispatch certain preset scripts upon the receival of these callbacks.

These should dispatch payment_intent_successful or verification_successful etc scripts with necessary parameters, such that the context circle can register this into its db. This will then allow a push to proceed in a flow to look up this successful callback, and if it exists proceed to next flow step. Of course, there will be some metadata associated with the flow to confirm that the callback received is the one required for the flow.

If we want to use rhai flows for registration as issued in #2, we need a mechanism to push data to the worker upon the receiving of a callback. Our existing ws server for circles receives rhai scripts, authenticates the script caller, and dispatches the script to be executed by the worker in the context of a specific circle. We need to augment our existing server to also be able to authenticate callbacks received in webhooks, and dispatch certain preset scripts upon the receival of these callbacks. These should dispatch payment_intent_successful or verification_successful etc scripts with necessary parameters, such that the context circle can register this into its db. This will then allow a push to proceed in a flow to look up this successful callback, and if it exists proceed to next flow step. Of course, there will be some metadata associated with the flow to confirm that the callback received is the one required for the flow.
timur self-assigned this 2025-07-08 19:33:52 +00:00
timur added this to the Zanzibar Digital Freezone project 2025-07-08 19:33:56 +00:00
Author
Owner

implemented with 93977bad7a. need more example to verify works

implemented with https://git.ourworld.tf/herocode/circles/commit/93977bad7a3e4feaaa7b561e3806f96d7c50f848. need more example to verify works
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: herocode/circles#1
No description provided.