Weebhook Pending but never sent

stccorp
Contributor
Contributor

I am using the sandbox

I create and order using rest api.  I get the order Id and the links

I use the approve link

Login into sand box, and complete the purchase.

At this point , I hava a JS calling a php page just checking for the status of the order

I have my webhook waiting using ngrok

I never get a post from Paypal.

If I use postman, my webhook is called

If I use the paypal simulator, my webhook is called.

I have the webhook programmed with the latest ngrok url address. They seem to change all the time.

 

1. WHY paypay does not seem to be calling the webhook??

2. Is there ANYTHING else beside creating the order I need to do?? The way I see it , i should just process the webhook to update my database

 

Any ideas

 

Login to Me Too
1 REPLY 1

Kavyar
Moderator
Moderator

Good day @stccorp,

 

Thank you for posting to the PayPal community.

 

To resolve this issue and to receive Webhook Events from all PayPal product services, please follow the below steps via your developer portal. 

 

My apps & credentials >> Select the respective App name >> Go to "SANDBOX WEBHOOKS" section >> Click "Edit Webhook" hyperlink >> toggle "All events" to receive all event notifications >> Save.

 

Merchant should first perform Create Order API( https://developer.paypal.com/docs/api/orders/v2/#orders_create) call and then redirect the customer/buyer to "approve" URL. 

 

Once the order is approved by the customer/buyer, merchant should perform CaptureOrder ( https://developer.paypal.com/docs/api/orders/v2/#orders_capture) API call and customer/buyer should pass the valid funding source.

 

If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.