feat(payment): 增加支付配置测试支付与全链路报文

This commit is contained in:
2026-11-20 14:51:17 +08:00
parent b539e3a42f
commit 8fec2fa5a2
19 changed files with 2353 additions and 5 deletions
@@ -100,6 +100,7 @@ type QueryPaymentResponse struct {
PayWay string
PayTime string
Raw map[string]string
RawRequest map[string]string
}
type CreateRefundRequest struct {
@@ -250,6 +251,7 @@ func (c *Client) QueryPayment(ctx context.Context, thirdOrderID, providerOrderID
PayWay: firstNonEmpty(raw["pay_mode"], raw["account_type"]),
PayTime: firstNonEmpty(raw["pay_time"], raw["trade_time"], raw["finish_time"]),
Raw: raw,
RawRequest: stringifyMap(reqData),
}, nil
}