void WebEvents_OnLoadRequestedPath(System.Web.HttpApplication app, string sprocketPath, string[] pathSections, HandleFlag handled) { if (!IntegrationEnabled) { return; } switch (sprocketPath) { case "paypal-ipn-process": using (PayPalTransactionResponse resp = InstantPaymentNotification.Authenticate()) { if (OnInstantPaymentNotification != null && resp != null) { OnInstantPaymentNotification(resp); } } break; case "paypal-trans-return": using (PayPalTransactionResponse resp = TransactionReturn()) { if (OnTransactionResponse != null && resp != null) { OnTransactionResponse(resp); } } break; default: return; } handled.Set(); }
void WebEvents_OnLoadRequestedPath(HandleFlag handled) { if (!IntegrationEnabled) { return; } switch (SprocketPath.Value) { case "paypal-ipn-process": { PayPalTransactionResponse resp = InstantPaymentNotification.Authenticate(); if (OnInstantPaymentNotification != null && resp != null) { OnInstantPaymentNotification(resp); } } break; case "paypal-trans-return": { PayPalTransactionResponse resp = TransactionReturn(); if (OnTransactionResponse != null && resp != null) { OnTransactionResponse(resp); } } break; default: return; } handled.Set(); }