Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信支付回调PaidWeChatPayEventHandler,取消状态进入退款逻辑? #74

Open
herirong opened this issue Feb 10, 2025 · 2 comments

Comments

@herirong
Copy link

...
else if (payment.IsCanceled())
{
_paymentLogger.LogInformation("callback wechat orderRefund:" + paymentId);
var outRefundNo = payment.Id.ToString();
var args = new WeChatPayRefundJobArgs(payment.TenantId, payment.Id, outRefundNo,
payment.ActualPaymentAmount, PaymentServiceWeChatPayConsts.InvalidPaymentAutoRefundDisplayReason);
...

@gdlcf88
Copy link
Member

gdlcf88 commented Feb 12, 2025

我没看明白你要表达的点。

@blackWins
Copy link

如果系统订单状态在支付成功回调之前已被取消,那么当前交易应该执行退款。

... else if (payment.IsCanceled()) { _paymentLogger.LogInformation("callback wechat orderRefund:" + paymentId); var outRefundNo = payment.Id.ToString(); var args = new WeChatPayRefundJobArgs(payment.TenantId, payment.Id, outRefundNo, payment.ActualPaymentAmount, PaymentServiceWeChatPayConsts.InvalidPaymentAutoRefundDisplayReason); ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants