feat(payment): 增加支付配置测试支付与全链路报文
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user