【问题标题】:react-native-braintree-dropin-ui popup not showing "Credit or Debit Cart" option in androidreact-native-braintree-dropin-ui 弹出窗口未在 android 中显示“Credit or Debit Cart”选项
【发布时间】:2020-09-07 07:56:17
【问题描述】:

我在我的 react-native 应用程序中使用了 react-native-braintree-dropin-ui 库。这是我用来调用 react-native-braintree-dropin-ui 弹出窗口的代码:

BraintreeDropIn.show({
  clientToken: brainTreeToken,
  countryCode: "US", //apple pay setting
  currencyCode: "USD", //apple pay setting
  orderTotal: cartAmount.toString(),
  googlePay: false,
  applePay: false,
  vaultManager: true,
  cardDisabled: false,
  darkTheme: true,
})
  .then((result) => {
    // here is an api to handle payment on server
  })
  .catch((error) => {
    if (error.code === "USER_CANCELLATION") {
      // code to handle user cancellation
    } else {
      // code to handle error
    }
  });

成功弹出braintree-dropin-ui。但问题是,在 android 中它只提供使用 paypal 支付的选项。它不会在弹出窗口中显示“信用卡或借记车”选项。然而,相同的代码在 iOS 中显示两个选项,Paypal 和 Credit 或 Debit Cart。

谁能帮我看看这里有什么问题?

【问题讨论】:

    标签: react-native braintree braintree-javascript react-native-braintree-dropin-ui


    【解决方案1】:

    从选项中删除 cardDisabled 键并重新运行它将显示的代码。由于屏幕截图中的注释代码它不会出现。

    【讨论】:

      猜你喜欢
      • 2022-08-13
      • 2020-06-05
      • 2019-06-22
      • 2021-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-17
      • 1970-01-01
      相关资源
      最近更新 更多