Warning Event
Information about errors during data delivery.
Syntax
[VB.NET] Public Event OnWarning As OnWarningHandler
[C#] public event OnWarningHandler OnWarning; public delegate void OnWarningHandler(object sender, AdaptivepreapprovalWarningEventArgs e); class AdaptivepreapprovalWarningEventArgs : EventArgs { string ErrorCode {get;} string Severity {get;} string Message {get;} string Parameter {get;} }
Remarks
The Warning event is fired when the response from PayPal contains one or more error messages in the response. If the error found in the PayPal response has a Severity of "Error", the component will fail with an error. Otherwise, this Warning event will fire with the ErrorCode returned by Paypal, as well as the Severity, Message, and Parameter of the error.
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.