Webhooks - PayPal - Anyone tried it? Was it simple to implement?

Webhooks - PayPal - Anyone tried it? Was it simple to implement?

Ok… i have looked at the Webhooks in PayPal.

Has anyone implemented this before? Was the configuration easy on Wappler’s side? As i know Stripe and all the “variables” are there. But dont know how to add a “custom” one.

1 Like

Never used it but webhooks are very simple.

  1. You set up a url endpoint of your app’s API for a specific event that happens in your paypal account.
  2. When that event happens paypal sends an http request and a payload to the endpoint you defined in step 1
  3. You set up a server connect workflow on that same url route and process the payload as you need.
  4. Bob’s your uncle.
2 Likes

Did you end up implementing the PayPal Webhooks?

Did some guides on how to do that a while back
PHP or node?

1 Like

The IPN post for last July?

Node

Yes

Great - I didn’t realize that was for a Webhook connection. Thanks

Yes, the Paypal callback is called an IPN (Instant Payment Notification) . You set the destination in your paypal account settings in the seller tools section

actually having looked at youir post in more detail, the guide I did does NOT cover the webhooks you are looking for, it only covers the specific payment notification.
I have new user the hooks you are looking for

Having read the docs, the technique, i think will be very similar, pasting the call-back code from the developers guide as a .js file in the extensions folder and the hjson tweaked for PayPal_Webhook

A couple of pointers for working with webhooks is using postman to test your calls first and make sure you are getting the data that you expect.

https://www.postman.com/

And to test the actual data getting sent to the webhook: It creates an URL that you send your webhook data to and be able to see what’s happening there. I’ve found these two resources invaluable in testing APIs and webhook usage.
https://webhook.site

1 Like

In my basic understanding - I felt they were similar. I’m thinking webhooks because I’m not adding an additional module to manage - just Wappler & PayPal