@capgo/capacitor-stripe-pay
@Capacitor/__CAPGO_KEEP_1__-stripe-pay
__CAPGO_KEEP_0__
概述Capacitor 支付条款插件,Apple Pay 和 Google Pay。
为什么 Capgo?
“为什么 Capgo?”这些插件是 @__CAPGO_KEEP_0__-community/stripe 的维护分支。 capacitor 将社区项目分解为专注于 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-pay 核心能力
- 设置 Stripe 公开密钥和可选的 Connect 账户。
__CAPGO_KEEP_0__initialize__CAPGO_KEEP_0__createPaymentSheet- 从您的后端客户端密钥创建一个付款单元。presentPaymentSheet- 展示原生 Stripe 付款单元。updateApplePaySheet- 在配送联系人选择后更新 Apple Pay 行项目。
Public API
标题:Public API| 方法 | 描述 |
|---|---|
initialize | 设置 Stripe 公开密钥和可选的 Connect 帐户。 |
createPaymentSheet | 从您的后端客户端密钥创建一个付款单元。 |
presentPaymentSheet | 展示原生 Stripe 付款单元。 |
updateApplePaySheet | 在配送联系人选择后更新 Apple Pay 行项目。 |
getPluginVersion | 获取原生 Capacitor 插件版本。 |
真实来源
名为“真实来源”的部分此参考资料是从 src/definitions.ts 在 capacitor-stripe-pay.
相关插件
名为“相关插件”的部分- @capgo/native-purchases 用于App Store和Play Store订阅
- @capgo/capacitor-pay 用于仅使用Apple Pay / Google Pay的钱包支付