daguimu
|
8b10bc3bd5
|
fix: harden alipay direct pay flow
|
2026-03-10 11:52:37 +08:00 |
|
erio
|
f50a180ec4
|
fix: 微信支付回调验签 PEM 格式自动补全,Stripe webhook 失败重试
- wxpay client: 添加 formatPublicKey() 自动包裹 PEM 头尾,修复裸 base64 公钥导致的 DECODER routines::unsupported 错误
- stripe webhook: 处理失败时返回 500 让 Stripe 重试
- 修正支付宝测试用例与实际代码对齐
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-07 04:27:38 +08:00 |
|
erio
|
ad6b63dd9e
|
fix: 修复支付宝签名时错误排除 sign_type 导致 invalid-signature
支付宝验签字符串包含 sign_type 字段,但 generateSign 错误地
将 sign_type 与 sign 一起排除。只需排除 sign,保留 sign_type。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-06 16:14:52 +08:00 |
|
erio
|
55756744a1
|
feat: 集成支付宝电脑网站支付(alipay direct)
- 新增 src/lib/alipay/ 模块:RSA2 签名、网关客户端、AlipayProvider
- 新增 /api/alipay/notify 异步通知回调路由
- config.ts 添加 ALIPAY_* 环境变量
- payment/index.ts 注册 alipaydirect 提供商
- 27 个单元测试全部通过
|
2026-03-05 01:48:10 +08:00 |
|