Interface: WantuPayClientOptions
Properties
api_secret
api_secret:
string
接口签名密钥。只从环境变量/密钥管理注入,绝不进代码库。
base_url
base_url:
string
网关地址:https://pay-api.wantutech.com(尾斜杠可有可无)。
merchant_id
merchant_id:
string
商户号,如 mch_7f2a9c。
timeout?
optionaltimeout?:number
单次请求超时,单位秒,默认 10。
transport?
optionaltransport?:Transport
自定义传输函数(测试注入用),形如 (url, headers, body) => [status, text]。
webhook_secret?
optionalwebhook_secret?:string
可选独立回调密钥;未配置则 webhook 验签共用 api_secret。