在 Flutter 应用程序中通过 Braintree 付款

Payment via Braintree in flutter application

我正在构建一个市场应用程序,并希望在 Braintree 中包含通过 PayPal 进行的付款(请参阅文档:flutter_braintree)。现在我正在使用 braintree 沙箱试用帐户。 据我正确理解,我必须为每家公司保存 braintree tokenizationKey,以便直接向他们付款,而不是向市场付款。由于测试原因,我包含了我的 braintree 沙箱帐户的 tokenizationKey。 我被成功定向到 PayPal 结帐页面,我无法登录,因为它处于沙盒模式。当我 select“继续购买沙盒”时,我会被重定向到应用程序并收到 BraintreePaymentMethodNonce。 Here you can find the screen where I can't login.

但不知何故,我在沙盒帐户的仪表板中看不到任何交易。 是我弄错了标记化的工作方式还是问题出在哪里?

I am successfully directed to the PayPal checkout where I can't login since it's in sandbox mode.

使用来自 https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Faccounts%2F

的沙盒买家(个人)帐户

如果公司只有 PayPal 账户而不是 Braintree 账户,您可以使用 PayPal via Braintree 和来自 PayPal 的 braintree access_token 进行身份验证以在您的服务器上获取客户端令牌(无令牌化密钥)

我也遇到了同样的问题。现在我找到了解决方案。您所要做的就是 link 您的 braintree 沙箱到您的 paypal 沙箱。 Here 是 link 沙盒帐户的过程。