Test Webhook event "PAYMENT.SALE.DENIED" from MVC C#

nagendrakashyap
Contributor
Contributor

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

Login to Me Too
1 REPLY 1

MTS_Jennifer
Moderator
Moderator

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

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.