概述
概述Capacitor 支付宝终端实体支付插件。
为什么 Capgo?
“为什么 Capgo?”这些插件是 Stripe Terminal 支付宝终端实体支付的维护分支。 @capacitor-community/stripeCapgo 将社区项目分解为专注于 Stripe 各个面向的包,包含文档、示例应用和每个包的 CI。Capgo 跟踪社区仓库中的开源问题和拉取请求,向我们的仓库中导入相关修复,并在当前 Stripe SDK 上发布。我们旨在比社区维护者更快速地响应 bug 或平台更新。
Capgo tracks open issues and pull requests in the community repository, ports relevant fixes into our repos, and ships them on current Stripe SDKs. We aim to be more reactive than the community maintainers when bugs or platform updates land.
是社区包的维护升级路径。 @capgo/capacitor-stripe-terminal 核心功能
“核心功能”
- 使用连接令牌提供者端点初始化支付宝终端。initializeFor in-person payments with Tap to Pay and physical readers,discoverReaders- Tap to Pay、蓝牙或互联网读卡器cancelDiscoverReaders- 取消正在进行中的读卡器发现会话connectReader- 连接到发现的读卡器
公开API
标题:公开API| 方法 | 描述 |
|---|---|
initialize | 使用连接令牌提供者端点初始化终端 |
discoverReaders | 发现Tap to Pay、蓝牙或互联网读卡器 |
cancelDiscoverReaders | 取消正在进行中的读卡器发现会话 |
connectReader | 连接到发现的读卡器 |
getPluginVersion | 获取本机Capacitor插件版本 |
参考值
参考值使用这些值 TapToPayUxConfiguration.darkMode 配置Tap to Pay时使用。
Tap To Pay暗色模式
Tap To Pay暗色模式| 值 | 用户将找到 |
|---|---|
SYSTEM | 匹配设备系统的外观。 |
DARK | 强制Tap to Pay流程进入暗色模式。 |
LIGHT | 强制Tap to Pay流程进入亮色模式。 |
真实来源
源代码标题“真实来源”此参考资料是从 src/definitions.ts 在 capacitor-stripe-terminal.
相关插件
源代码标题“相关插件”- capgo/native-purchases 用于App Store和Play Store订阅
- capgo/capacitor-pay 用于仅使用Apple Pay / Google Pay的钱包支付而不使用Stripe Payment Sheet