UNPKG
@i-orz/wechat-pay
Version:
latest (0.0.2)
0.0.2
0.0.1
Wechat pay v3 Node.js SDK.
@i-orz/wechat-pay
/
test
/
cert.js
11 lines
(8 loc)
•
238 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
const
WechatPay
=
require
(
'../src'
);
const
wechatPay =
new
WechatPay
({
test
:
true
}); wechatPay.
http
.
get
(
'/v3/certificates'
).
then
(
res
=>
{ wechatPay.
logger
.
info
(res); }).
catch
(
err
=>
{ wechatPay.
logger
.
error
(err); });