I'm implementing a simple payment workflow using paypal REST API. I first create a payment, redirect the user to the URL returned by this call, and execute the payment upon approval.
To make it more reliable, I'd like to use webhook notifications.
And this is when it starts being a problem: I don't receive any notification.
Given the different Q&A I read so far, here are my remarks:
- The whole payment process is working, I'm able to communicate with Paypal and to validate a payment.
- It works fine while using the webhook simulator so I know my system is ok.
- I subscribed to all events. I'd expect to receive at least "PAYMENT.AUTHORIZATION.CREATED" and "PAYMENT.SALE.COMPLETED" notifications (or "PAYMENT.SALE.DENIED" if the payment is denied). I checked that they are listed in the supported event type list.
- I'm still using the sandbox environment, but I saw nothing specifying it should not work in this context.
- "Sandbox Webhooks Events" is empty, but I'm not sure whether they should appear here anyway.
I've no clue where this correlation ID/debug ID is supposed to be.
EDIT: from answer, correlationID is to be found in the response header. Here are mines:- aa25ee518487a // webhook creation
- 1fbf78ce3a034 // payment creation
- 7a5d3c34daa5d // payment execution
Is there something more I should do to make it works? Or is there something more I could do to debug it?
Bonus: Am I right to expect "PAYMENT.AUTHORIZATION.CREATED" and "PAYMENT.SALE.COMPLETED/DENIED" notifications in my case?
EDIT2: So after one month, I'm coming back to this issue. I can now see the webhook event in the dashboard (no clue what changed), and its status is PENDING. Its transaction-id is 4396a630-78bc-11e6-8890-77339302725b. Any idea how I could get more details about why it's pending?