Express Checkout webhook sandbox events aren't sent to listener.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm trying to integrate PayPal's Express Checkout button with server-side REST API implementation in an e-commerce website and I've been having issues testing the webhook notifications. I'm using c# webforms with the .NET PayPal SDK as well as code adapted from the tutorial in the links: PayPal REST API, PayPal Webhooks.
After the client authorizes the payment and the server sends the execute call, the only webhook notifications I'm receiving are PAYMENT.SALE.PENDING events, even though I selected all events to be sent in the application dashboard. If I check the notifications tab in the dashboard, I can see successful payment notifications were received in both the merchant and buyer sandbox accounts. If I check the API calls tab in the dashboard, there's only 1 "/v1/notifications/webhooks-events" after every "/v1/payments/payment/PAY-xxxx/execute" call.
In addition to the problem above, if I try to use the Webhook simulator to send notifications to my listener, I always get the following exception when I call "WebhookEvent.Get(apiContext, webhookId)":
"The remote server returned an error: (404) Not Found."
"{\"name\":\"INVALID_RESOURCE_ID\",\"debug_id\":\"3ce295c1929ea\",\"message\":\"Resource id is invalid\",\"information_link\":\"https://developer.paypal.com/docs/api/webhooks/#errors\",\"details\":[]}"
EDIT 12/06/2018: Feel free to close this post. I've figured out what was wrong, the account I was using had the currency conversion settings set to manual, which don't get triggered by sandbox payments.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox account not generating IPNs in Sandbox Environment
- Paypal express checkout, payment they error "Sorry, something went wrong. Please try again." in PayPal Payments Standard
- Change the button from Sandbox to Production in REST APIs
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- API TRANSACTION_REFUSED in Sandbox when Capturing Payment in REST APIs