erio
a56a2f138a
test(payment): add unit tests for payment audit fixes + allow empty supported_types
Tests (1033 new lines, 100% coverage on modified functions):
- amount.go: YuanToFen/FenToYuan with precision edge cases
- wxpay: mapWxState, wxSV, formatPEM, NewWxpay validation
- alipay: isTradeNotExist, NewAlipay validation
- webhook: writeSuccessResponse (wxpay JSON, stripe empty, others text)
- config: validateProviderRequest, isSensitiveConfigField, joinTypes
- fulfillment: resolveRedeemAction idempotency logic
Business logic changes:
- Allow empty supported_types on provider instances
- Block removing payment types when instance has pending orders
- Extract resolveRedeemAction as testable pure function
2026-04-08 18:21:12 +08:00
..
2026-04-07 13:29:39 +08:00
2026-04-07 13:29:39 +08:00
2026-03-04 11:29:31 +08:00
2026-03-15 17:52:29 +08:00
2026-03-09 01:18:49 +08:00
2026-04-05 17:11:01 +08:00
2026-04-05 17:11:01 +08:00
2026-03-08 14:12:17 +08:00
2026-03-08 14:12:17 +08:00
2026-04-04 12:38:50 +08:00
2026-02-14 11:23:10 +08:00
2026-02-07 19:04:08 +08:00
2026-04-04 12:38:50 +08:00
2026-03-15 16:21:49 +08:00
2026-04-04 11:12:21 +08:00
2026-04-05 17:11:01 +08:00
2026-02-07 22:14:07 +08:00
2026-03-09 19:55:18 +08:00
2026-03-18 11:31:32 +08:00
2026-03-01 15:45:44 +08:00
2026-02-07 17:12:15 +08:00
2026-04-01 02:20:13 +08:00
2026-04-04 12:38:50 +08:00
2026-04-06 00:53:57 +08:00
2026-02-23 12:45:37 +08:00
2026-02-23 12:45:37 +08:00
2026-02-12 19:01:09 +08:00
2026-04-04 11:25:01 +08:00
2026-03-05 16:46:14 +08:00
2026-03-15 22:13:42 +08:00
2026-03-20 13:36:54 +08:00
2026-04-04 11:25:01 +08:00
2026-03-24 09:52:56 +08:00
2026-03-21 23:38:00 +08:00
2026-04-08 17:20:49 +08:00
2026-04-08 18:21:12 +08:00
2026-04-08 17:11:32 +08:00
2026-04-06 01:51:12 +08:00
2026-02-28 15:01:20 +08:00
2026-03-15 22:13:12 +08:00
2026-04-05 17:11:01 +08:00
2026-03-03 01:05:11 +08:00
2026-04-06 00:53:57 +08:00