Opening a webhook endpoint to receive data from external server about a payment. Rowy duplicating response #1401
-
good day. I have for a week, been trying to setup a webhook event receiver from Yoco, a payment gateway.
I figured Yoco has the following code in their guide to setup a webhook endpoint // Using Express app.post("/my/webhook/url", function(req, res) {
}); So i assume that res.send(200) is a response that should be sent back to the serve to notify that we have received and processed the information. I tried many things to work with that however i got the same results . Please, if you could guide me, on what could be the suitable code I would appreciate it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Ausint, You should give a try to implement this with BuildShip to handle and receive the data from an external server. I invite you to join our Discord and post this on the community support channel. -- |
Beta Was this translation helpful? Give feedback.
@Ausint
To handle the webhook event and prevent duplication of responses, you can use a Cloud Function in Google Cloud Platform (GCP) written in JavaScript. Here's an example of how you can implement it: