Test Webhook event "PAYMENT.SALE.DENIED" from MVC C#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have developed Web Application (using MVC c#) with PayPal Subscription integration for our US based client . And implemented HTTP method to receive PayPal Webhook events. We would like know the procedure to test/verify Webhook event "PAYMENT.SALE.DENIED" from MVC Application. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Sandbox Community.
If you enable Negative Testing you should be able to simulate payment denied experiences.
Here is a listing of various request headers you can use to simulate error messages:
https://developer.paypal.com/docs/api-basics/sandbox/request-headers/
If you do not want to use Negative Testing, the Webhooks Simulator also has Payment sale denied webhook simulation built in.
Here is how you can send a Payment sale denied webhook:
- Log into the Developer Dashboard at https://developer.paypal.com
- Click on Webhooks Simulator
- Insert your Webhooks listener URL
- Under Event type choose Payment sale denied
- Click Send test
Thank you,
Jennifer
PayPal
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Webhook Data Discrepancies Between Live and Sandbox Environments in REST APIs
- Webhook order cancellation notifications not received in Sandbox Environment
- Passing Internal Order ID Between Webhooks (CHECKOUT.ORDER.APPROVED & PAYMENT.CAPTURE.COMPLETED) in REST APIs
- Webhook event "Payment capture refunded" is not sent by PayPal in REST APIs
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment