[weixin-app] Support HMAC-SHA256 (#29769)

This commit is contained in:
Malash
2018-10-17 00:25:39 +08:00
committed by Sheetal Nandi
parent 66c9ea288f
commit 48c35f45d5

View File

@@ -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;