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.
- API TRANSACTION_REFUSED in Sandbox when Capturing Payment in REST APIs
- Just need webhook ID in REST APIs
- Members cannot pay for an event using PayPal Commerce plugin with WPForms - no pattern we can find. in PayPal Payments Standard
- webhook not send update notification in REST APIs
- webhook deregistration in REST APIs