银联支付插件
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* uts插件接口定义文件,按规范定义接口文件可以在HBuilderX中更好的做到语法提示
|
||||
*/
|
||||
type modeType = '00' | '01'
|
||||
|
||||
export type startPayOptions = {
|
||||
/**
|
||||
* 银联环境,00正式环境,01测试环境
|
||||
*/
|
||||
mode: modeType,
|
||||
/**
|
||||
* 服务端返回的交易流水号,即tn
|
||||
*/
|
||||
tn: string,
|
||||
/**
|
||||
* 【可选】【IOS无效】手机pay支付类别,传入会展示对应的手机支付,如:华为支付
|
||||
*/
|
||||
seType?: string,
|
||||
/**
|
||||
* 支付结果回调
|
||||
*/
|
||||
callback: (result: any) => void
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否安装云闪付App
|
||||
*/
|
||||
export type checkWalletInstalled = () => boolean
|
||||
|
||||
/**
|
||||
* 拉起云闪付app并发起支付
|
||||
*/
|
||||
export type startPay = (options: startPayOptions) => void
|
||||
|
||||
/**
|
||||
* 检查已安装的支持直通模式的银行app列表
|
||||
* 用途是在服务端生成tn时,保留域传入"ebankEnAbbr" : "银行标识"
|
||||
*/
|
||||
export type getDirectApps = (callback: Function) => void
|
||||
Reference in New Issue
Block a user