When I complete a payment with PayPal using a sandbox account, webhook events are listed as “Pending” with an orange icon in the “Webhook events” section of the PayPal developer dashboard, and the log shows that the webhook has not been called. However, when using a different REST API app, the webhook call works perfectly!
I have tried:
- Ensuring that currency is correctly configured
- Changing the “Payment Review” setting to “Off” for each sandbox account
- Making the app call the webhook for all events
- Comparing settings with the other app I made, for which the webhook does get called
- Checking that the webhook causes log output, so there is no error causing the lack of output
What other things could be causing this difference, making webhook calls work for one app but get stuck in “Pending” for another that I created more recently?
2
Answers
Sandbox accounts and REST Apps are free and unlimited, so if one isn’t working the way you need it to, the simple solution is to not use it anymore and use any number of new ones you create instead.
But if this remains an issue for you, it seems like you should direct the question to PayPal’s support, since you’ve included no request/response log information to actually review for what might be different about the two apps or accounts’ situations that causes one to be pending.
I was testing in wrong way, i had a test ambient develop and when I was sending events to paypal, the return route was indicating to production ambient. Thats my error and my soluction was buying some stuffs in production ambient. Summarize, the paypal cant get a response for your event, in other words, paypal cant finish the event. Verify your RETURN URL and CANCEL URL.