can I make a cloud function always run like a server? there is a need to always listen to an API asynchronously
@safwan
do you want to make the function act as an API, or do you want to listen to an API from the function?
listen to an API from the function @safwan
Hello @safwan
can you clarify/provide more details?
I want my cloud function to always run asynchronously so it can listen to an API @Steven @safwan
please describe what exactly you want to do. and why are you using cloud functions for this?
I want the function to listen to an API when user payment is successful and return a response @safwan
isn't a webhook a better approach for this?
you can setup a webhook that send the data to a URL on your client-side app, and handle it there
okay, any example? @safwan
like a stripe webhook? what's the network flow look like?
paystack specifically, users have dedicated numbers that is used for funding account in order to buy services, if funding is successful, I want to always have a code that updates tat, how do I do that with cloud function since the code must be live consistently?
typically, these platforms allow you to set up a webhook so that whenever some update occurs, a POST request is made to that webhook URL. is that what paystack has?
Recommended threads
- 1.6.2 to 1.7.0
Hi everyone. I am running a self-hosted Appwrite server on version 1.6.2. What is the safest way to migrate to the next version? Should I update directly to...
- Exception: Route not found when calling ...
I have self-hosted v1.8.1 and I am using an Appwrite function with node-appwrite v22. When I call the createVarcharColumn() in my server function I get this exc...
- Document created without ID in console
Hi team, I’m experiencing an issue in the Appwrite console. When I create a document in a collection via the **Collections UI**, the document gets created **wi...