我在我的 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。
谁能帮我这里有什么问题?