Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal - RestAPI - Sandbox Webhook not occurring

Using my sandbox account with the RestAPI, I've created an invoice. My buyer account got the notification, I went to the link and paid it ok. There's notifications that I received payment. However, no WebHook notification.

I added all events to my WebHook. When using the WebHook simulator, I get the POST to my API just fine. It's hosted by a Redmond based cloud provider and is https.

Under the WebHook Events link in the Sandbox section, it's showing no entries.

Where else can I go to investigate this?

like image 789
Carol AndorMarten Liebster Avatar asked Nov 25 '15 05:11

Carol AndorMarten Liebster


1 Answers

list all your registered webhooks use following with your actual access-token

  curl -v -X GET https://api.sandbox.paypal.com/v1/notifications/webhooks \
-H 'Content-Type:application/json' \
-H 'Authorization: Bearer <Access-Token>'

in the response, you should be able to find out what exactly were in the system for your webhooks, if not, did you created the webhooks as document says?

curl -v POST https://api.sandbox.paypal.com/v1/notifications/webhooks \
-H 'Content-Type:application/json' \
-H 'Authorization: Bearer <Access-Token>' \
-d '{
    "url": "https://www.yeowza.com/paypal_webhook",
    "event_types": [
        {
            "name": "PAYMENT.AUTHORIZATION.CREATED"
        },
        {
            "name": "PAYMENT.AUTHORIZATION.VOIDED"
        }
    ]
}'
like image 126
Allen Avatar answered Sep 21 '22 16:09

Allen