Files
property-resident-side/property-uniapp-project/uni_modules/liyahong-unionpay/utssdk/interface.uts
2026-06-04 17:55:18 +08:00

39 lines
937 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 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