zsqk / weixin-pay-sdk

weixin pay SDK for deno (v3)
MIT License
1 stars 0 forks source link

通用的基础请求函数 #2

Closed iugo closed 5 months ago

iugo commented 1 year ago

相关微信文档: https://pay.wechatpay.cn/wiki/doc/apiv3/wechatpay/wechatpay2_0.shtml

需要制作的有:

  1. 请求头 User-Agent
  2. 请求头 Content-Type
  3. 请求头 Accept
  4. 请求头 Accept-Language
  5. 请求头 Authorization 的生成 (需要 https://github.com/zsqk/weixin-pay-sdk/issues/3 支持)
  6. 请求 body 格式匹配请求头 Content-Type
  7. 请求统一的 endpoint
iugo commented 5 months ago

close by https://github.com/zsqk/weixin-pay-sdk/pull/6/commits/2ab3adf11f46d2e3e7e8b10dc916f63d0f263f7b