Skip to content

Commit 1bf523d

Browse files
committed
增加test.lua使用示例
1 parent aedf10e commit 1bf523d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
local cashier = require "cloud.payjs.cashier"
2+
local native = require "cloud.payjs.native"
3+
local micro = require "cloud.payjs.micro"
4+
local face = require "cloud.payjs.face"
5+
local js = require "cloud.payjs.js"
6+
local order = require "cloud.payjs.order"
7+
local utils = require "cloud.payjs.utils"
8+
9+
local mchid = "123456"
10+
local key = "wodjwaiodwadka"
11+
12+
-- 支付相关接口
13+
-- js.pay(mchid, key, ...)
14+
-- native.pay(mchid, key, ...)
15+
-- cashier.pay(mchid, key, ...)
16+
-- face.pay(mchid, key, ...)
17+
18+
-- 订单相关接口
19+
-- order.order_check(mchid, key, order_id)
20+
-- order.order_close(mchid, key, order_id)
21+
-- order.order_reverse(mchid, key, order_id)
22+
-- order.order_refund(mchid, key, order_id)
23+
24+
25+
-- 查询商户信息
26+
-- utils.mch_info(mchid, key)
27+
28+
-- 查询银行编码
29+
-- utils.bank_code(mchid, key, bank)
30+
31+
-- 获取用户 OPENID
32+
-- utils.mch_openid(mchid, key, callback_url)

0 commit comments

Comments
 (0)