银联支付插件

This commit is contained in:
zhouyanli
2026-06-04 17:55:18 +08:00
parent a8e3d1f875
commit d26bd4e86b
46 changed files with 1769 additions and 0 deletions

View File

@@ -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