feat: handle refund notifications

This commit is contained in:
Codex
2026-06-29 05:34:41 +08:00
parent e9cf363df9
commit ad8e32fa6b
12 changed files with 586 additions and 57 deletions

View File

@@ -14,6 +14,7 @@ import {
paymentNotifyRoute,
redeemActivationCodeRoute,
refundRequestsRoute,
refundNotifyRoute,
updateRefundStatusRoute,
} from './routes.js';
@@ -32,6 +33,9 @@ export const commerceRoutes: RouteDefinition[] = [
['POST', '/api/commerce/payments/notify/wechat_pay', paymentNotifyRoute],
['POST', '/api/commerce/payments/notify/wechat-pay', paymentNotifyRoute],
['POST', '/api/commerce/payments/notify/alipay', paymentNotifyRoute],
['POST', '/api/commerce/refunds/notify/wechat_pay', refundNotifyRoute],
['POST', '/api/commerce/refunds/notify/wechat-pay', refundNotifyRoute],
['POST', '/api/commerce/refunds/notify/alipay', refundNotifyRoute],
['POST', '/api/commerce/activation-codes/check', checkActivationCodeRoute],
['POST', '/api/commerce/activation-codes/redeem', redeemActivationCodeRoute],
['POST', '/api/commerce/coupons/claim', claimCouponRoute],