GithubHelp home page GithubHelp logo

payjs-lua's Introduction

PayJS聚合支付Lua SDK

PayJS集合支付SDK, 进入官网注册.

使用详情请参考社区文档.

SDK提供的支持

支付

  • 扫码支付

  • 人脸支付

  • 付款码支付

  • JSPAI支付

订单相关

  • 订单查询

  • 订单关闭

  • 订单撤销

  • 订单退款

其它

  • 查询银行编码

  • 查询openid

  • 查询用户资料

  • 查询商户资料

使用说明

本库依赖的lua运行时框架在这里.

cloud文件夹复制到lualib库内即可完成使用安装, 其它框架Lua依赖库需要自行修改源码与依赖.

使用示例

local cashier = require "cloud.payjs.cashier"
local native = require "cloud.payjs.native"
local micro = require "cloud.payjs.micro"
local face = require "cloud.payjs.face"
local js = require "cloud.payjs.js"
local order = require "cloud.payjs.order"
local utils = require "cloud.payjs.utils"

local mchid = "123456"
local key = "wodjwaiodwadka"

-- 支付相关接口
-- js.pay(mchid, key, ...)
-- native.pay(mchid, key, ...)
-- cashier.pay(mchid, key, ...)
-- face.pay(mchid, key, ...)

-- 订单相关接口
-- order.order_check(mchid, key, order_id)
-- order.order_close(mchid, key, order_id)
-- order.order_reverse(mchid, key, order_id)
-- order.order_refund(mchid, key, order_id)


-- 查询商户信息
-- utils.mch_info(mchid, key)

-- 查询银行编码
-- utils.bank_code(mchid, key, bank)

-- 获取用户 OPENID
-- utils.mch_openid(mchid, key, callback_url)

协议

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.