yangfuhe / node-wxpay

微信支付APIv3 for nodejs
162 stars 30 forks source link

decodeCertificates() in constructor #3

Open sharper opened 2 years ago

sharper commented 2 years ago

decodeCertificates 是异步函数

constructor({appid, mchid, private_key, serial_no,apiv3_private_key,notify_url} = {}) { .... this.decodeCertificates(); // pending , 无法加载 certificates }