PayPal Webhooks in Sandbox not working

Viewed 3152

I integrated the REST API into our system. Only thing missing is a response to a webhook I created.

The webhook is registered in my app for the sandbox, but when I create a payment in the sandbox using the apps keys, I don't get a call to the webhook receiver. Using the webhook simulator works just fine.

The steps I do:

  1. https://api.sandbox.paypal.com/v1/oauth2/token
  2. https://api.sandbox.paypal.com/v1/payments/payment
  3. Redirect to the result link with method: "REDIRECT"
  4. Complete payment with sandbox account

Is there anything I am doing wrong? Is there some problem with using this in the sandbox?

2 Answers

Same issue happened to me; turns out it was a firewall issue. Paypal webhook simulator (and webhook calls from sandbox operations) actually tried but failed to send the webhook message.

Paypal sandbox webhook simulator simply gives a message that the webhook call has been "successfully" queued. Though "success" here is misleading as it wasn't one in the end.

Would be nice if Paypal can provide the call status of the simulated webhook calls that were being made. Then at least we could have some immediate clue of what was going on.

Related