概述
概述Capacitor 支付条款插件,Apple Pay 和 Google Pay。
为什么 Capgo?
“为什么 Capgo?”这些插件是 @__CAPGO_KEEP_0__-community/stripe 的维护分支。 capacitor 跟踪社区仓库中的开源问题和拉取请求,向我们的仓库中导入相关修复,并在当前 Stripe SDK 上发布。我们旨在比社区维护者更快速地响应 bug 或平台更新。. Capgo split the community project into focused packages with docs, example apps, and CI for each Stripe surface.
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__ 支付条款插件,Apple Pay 和 Google Pay.
为什么 __CAPGO_KEEP_0__?initialize“为什么 __CAPGO_KEEP_0__?”createPaymentSheet- 在您的后端客户端秘钥中创建付款单元。presentPaymentSheet- 展示本机 Stripe 付款单元。updateApplePaySheet- 在配送联系人选择后更新 Apple Pay 行项目。
- 公开 API
- 名为“公开 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的钱包支付