0

I am building the system to listen to the Payment changes in PayPal for that I research and recommended using Webhooks over the IPN.

As of now, I can able to create an app and add webhooks with event subscribers. Also, with the webhook simulator I am getting notified correctly but with the actual Payment made in the sandbox does not trigger anything to the listener.

I have verified the correct business account linked with credentials as well.

Everything is working perfectly except the Webhooks triggering from PayPal.

Also, as noting is triggering I do not have debug id as well.

  • Webhook and IPN are two different things, so one does not support the other. Have you registered a webhook listener url for the sandbox app clientid you are processing payments with? – Preston PHX Mar 21 '22 at 16:53
  • @PrestonPHX I have a webhook listener URL set up and it is listening to the MOCK/Simulator events already. Can you please elaborate on what exactly registering on sandbox app clientid? – user13685836 Mar 21 '22 at 17:00

1 Answers1

0

If you have not registered any webhook listeners for any of your REST Apps (either sandbox or live), PayPal will not send any webhooks because it does not know which ones to send events for, or where to send them.

To register webhooks for an app, either:

  • Find the app for the correct sandbox account in My Apps and Credentials (or create one), and Add Webhook
  • Do so via using thewebhooks API, with the correct REST App client id and secret for authentication

Until you register a listener URL for event(s), no webhooks will be sent.

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • Ahhh, Yes I already registered that: https://share.bsf.io/KouAqO9b – user13685836 Mar 21 '22 at 17:09
  • Well is it for the correct sandbox account? Are you processing payments with that App's client ID? – Preston PHX Mar 21 '22 at 17:09
  • Ok, So I have configured Payment with these credentials: https://share.bsf.io/geumW8wP and just below you can see the registered the APP. – user13685836 Mar 21 '22 at 17:13
  • By these credentials do you mean the NVP/SOAP API credentials? If you are using one of the classic APIs (authenticating with a USER/PWD/Signature, rather than a clientid secret) then for classic API webhook events you're more limited in what you can do. Within 'My Apps & Credentials' try going to the 'Live' tab (even for sandbox) and under NVP/SOAP API Apps there's a button for Manage Webhooks, https://developer.paypal.com/developer/accountBasedWebhooks/create – Preston PHX Mar 21 '22 at 20:11
  • But if you are using a client ID+secret to process payments then that ^^ doesn't apply. How are you creating payments for the client ID? Try using the client ID in https://developer.paypal.com/demo/checkout/#/pattern/client and make a sandbox payment, to see if it results in a webhook event. You can view sandbox webhooks history in https://developer.paypal.com/developer/dashboard/webhooks/sandbox – Preston PHX Mar 21 '22 at 20:14