PayError Event
Information about errors during data delivery.
Syntax
[VB.NET] Public Event OnPayError As OnPayErrorHandler
[C#] public event OnPayErrorHandler OnPayError; public delegate void OnPayErrorHandler(object sender, AdaptivepayPayErrorEventArgs e); class AdaptivepayPayErrorEventArgs : EventArgs { string ErrorCode {get;} string Message {get;} string Severity {get;} string RecipientEmail {get;} string InvoiceId {get;} bool Primary {get;} }
Remarks
The PayError event is fired when the response from PayPal contains one or more error messages about failed payments. This is different from the Warning event, which reports system and formatting errors. Please note that the ErrorCode will be the exact code returned from PayPal, and does not map to any of the component's internal error codes.