Create Web listener function

Hello,
I am new to JavaScript and Wix , so my question might be stupid, but I haven’t found an answer here.
I would like to implement Web listener function on my site at Wix and receive notification from other sites WebHooks (namely PayPal IPN notifications).
Is there any way to implement such functionality ?
Thank you !
Vasil

Hi,

What you want might be possible. You will need to check with the service providers to see what sort of API they offer. And, it will take some serious code.

Meanwhile, you can read about Accessing 3rd Party Services for a taste of what’s possible and how it’s done.

Have fun,

Yisrael

Thank you Yisrael !
I know the link you send me and I am using Fetch API to access 3-rd party services.
What I need is essentially the reverse - some method/script/app to expose simple WebServer listener hosted on Wix platform.
Seems strange that it is not implemented already as some plugin or app - this seem like very frequently required functionality , are you planning to implement something similar ?
Regards,
Vasil

You can Expose your Site API with HTTP Functions . This might work for what you need.

Hey Vasil! I’m trying to do the same here. Did you figure out how to do this?

bump. I am stuck trying to get my event listener for the paypal ipn set up. Any help here? @yisrael

This example will help you get started exposing an API:

Expose and Access Site APIs

Use MyApi and MyApiClient to expose and access external APIs.