Is there a way to get a more specific PayPal error than 400 bad requests? I saw someone doing something like this:
if (ex.InnerException is ConnectionException)
{
Response.Write(((ConnectionException) ex.InnerException).Response);
}
else
{
Response.Write(ex.Message);
}
But for me it does not look like all the errors say: "The remote server responded to the error: (400)" Bad request. "
I read that this may have something to do with some kind of validation error, but I tried to change the data that I send to PayPal, but so far no luck.
Hope you help me, thanks!
EDIT:
Thanks to Aydin, I was able to find this error message in one of the HTTP requests via Fiddler:
{"name":"VALIDATION_ERROR","details":[{"field":"payer.funding_instruments[0].credit_card.number","issue":"Value is invalid"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR","debug_id":"dd5f11f6e9c98"}
source
share