使用 Braintree SDK 在 Android 中支付 PayPal

Posted

技术标签:

【中文标题】使用 Braintree SDK 在 Android 中支付 PayPal【英文标题】:PayPal payments in Android using Braintree SDK 【发布时间】:2021-02-10 16:02:23 【问题描述】: 我正在我的 android 应用程序中集成 PayPal 付款。不能使用PayPal Android SDK,因为它已被弃用。 Docs 根据文档,Braintree Direct 在印度不受支持,他们建议将Express CheckoutBraintree SDK 一起使用。 当我单击 Express Checkout 链接 Here 时,他们要求我创建一个生产帐户,仅包含印度以外的受支持国家/地区(Sandbox 运行良好)。 那么,如何在印度为我的 Android 应用程序集成 PayPal 付款?为了进行测试,我创建了一个沙盒帐户 Here,它工作正常,但生产环境可以做什么?

【问题讨论】:

【参考方案1】:

您可以通过https://www.paypal.com/api从任何生产 PayPal 企业帐户获取“通过 Braintree SDK 快速结帐”的生产凭证

(它将对应于您在沙盒模式下用于“通过 Braintree SDK 快速结帐”的相同类型的访问令牌——在这种情况下,来自 https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications 的底部)

【讨论】:

第1步:转到paypal.com/api,第2步:获取生产Braintree SDK访问令牌,第3步:使用生产访问令牌进行实时集成 @PrestonPHX 你的意思是说如果我有 Braintree SDK 访问令牌,我不需要 BrainTree 生产帐户?我说的对吗? @PrestonPHX merchantId公钥私钥呢? 不用于通过 Braintree 快速结帐 Braintree 文档通常更新且相关,但如果您正在寻找如何在代码中指定访问令牌凭据,developer.paypal.com/docs/archive/checkout/how-to/… 的存档文档可能会有所帮助

以上是关于使用 Braintree SDK 在 Android 中支付 PayPal的主要内容,如果未能解决你的问题,请参考以下文章

使用 Braintree SDK 在 Android 中支付 PayPal

(Rails) 使用 Braintree v.zero SDK 进行 PayPal 支付

我们可以在 BrainTree SDK 中获取测试卡来测试 ApplePay 吗?

如何从 Braintree iOs SDK 中获取 nonce

国外braintree支付手段配置以及使用

Braintree iOS SDK 和 Card I/O iOS SDK 之间的冲突:架构 armv7 的重复符号