react-native-braintree-dropin-ui 弹出窗口未在 android 中显示 "Credit or Debit Cart" 选项

react-native-braintree-dropin-ui popup not showing "Credit or Debit Cart" option in android

我在我的 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

谁能帮我看看这是什么问题?

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