diff --git a/sample/ICanPay.Demo/Controllers/NotifyController.cs b/sample/ICanPay.Demo/Controllers/NotifyController.cs
index d7832d1..2c90f9b 100644
--- a/sample/ICanPay.Demo/Controllers/NotifyController.cs
+++ b/sample/ICanPay.Demo/Controllers/NotifyController.cs
@@ -25,7 +25,7 @@ namespace ICanPay.Demo.Controllers
await notify.ReceivedAsync();
}
- private void Notify_PaymentSucceed(object sender, PaymentSucceedEventArgs e)
+ private bool Notify_PaymentSucceed(object sender, PaymentSucceedEventArgs e)
{
// 支付成功时时的处理代码
/* 建议添加以下校验。
@@ -36,6 +36,9 @@ namespace ICanPay.Demo.Controllers
{
var alipayNotify = (Alipay.Notify)e.Notify;
}
+
+ //处理成功返回true
+ return true;
}
private void Notify_PaymentFailed(object sender, PaymentFailedEventArgs e)
diff --git a/src/ICanPay.Core/Payments/PaymentNotify.cs b/src/ICanPay.Core/Payments/PaymentNotify.cs
index 548ab1e..9b6bf0d 100644
--- a/src/ICanPay.Core/Payments/PaymentNotify.cs
+++ b/src/ICanPay.Core/Payments/PaymentNotify.cs
@@ -38,7 +38,7 @@ namespace ICanPay.Core
///
/// 网关异步返回的支付通知验证成功时触发
///
- public event Action