跳过内容

@capgo/capacitor-Stripe Terminal

Capacitor用于在场地支付的Stripe Terminal插件。

概述

概述

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 核心功能

  • initialize For in-person payments with Tap to Pay and physical readers,
  • discoverReaders - Tap to Pay、蓝牙或互联网读卡器
  • cancelDiscoverReaders - 取消正在进行中的读卡器发现会话
  • connectReader - 连接到发现的读卡器
方法描述
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.tscapacitor-stripe-terminal.