From 48c35f45d5d2a295e8091c210ca956bd921ca7e8 Mon Sep 17 00:00:00 2001 From: Malash Date: Wed, 17 Oct 2018 00:25:39 +0800 Subject: [PATCH] [weixin-app] Support HMAC-SHA256 (#29769) --- types/weixin-app/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/weixin-app/index.d.ts b/types/weixin-app/index.d.ts index 376d8955e1..df1263f1b2 100644 --- a/types/weixin-app/index.d.ts +++ b/types/weixin-app/index.d.ts @@ -3099,7 +3099,7 @@ declare namespace wx { */ function getUserInfo(options: GetUserInfoOptions): void; // 开放接口-----微信支付 - type PaymentSignType = "MD5"; + type PaymentSignType = "MD5" | "HMAC-SHA256"; interface RequestPaymentOptions extends BaseOptions { /** 时间戳从1970年1月1日00:00:00至今的秒数,即当前的时间 */ timeStamp: string | number; @@ -3107,7 +3107,7 @@ declare namespace wx { nonceStr: string; /** 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=* */ package: string; - /** 签名算法,暂支持 MD5 */ + /** 签名算法,默认为MD5,支持HMAC-SHA256和MD5 */ signType: PaymentSignType; /** 签名,具体签名方案参见微信公众号支付帮助文档; */ paySign: string;