问题描述
我在我的本机应用程序中使用了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和贷方或借方购物车。
有人可以帮我这是什么问题吗?