我正在使用离子框架为Android开发一个电子商务移动应用。我用下面的付款插件。https://ionicframework.com/docs/v3/native/braintree/直到12月19日,braintree UI仍能正常工作。但是现在当我尝试付款(在android设备中)时,用户界面打开,然后立即关闭。
this.braintree.initialize(this.BRAINTREE_TOKEN)
.then(() => this.braintree.presentDropInPaymentUI(paymentOptions))
.then((result: PaymentUIResult) => {
if (result.userCancelled) {
console.log("User cancelled payment dialog.",result);
} else {
console.log("Ready for payment!");
this.payment_method_nonce=result.nonce;
let loading=this.toast.presentLoading();
this.customerData.proceed2Pay(this.getOrder()).then((data:any)=>{
loading.dismiss();
if(data.payment){
this.toast.toast(this.translate.instant('MESSAGE.PAYMENT_SUCCESS'),{cssClass:'toast-success',duration:4000});
this.placeOrder();
}
else{
this.toast.toast(this.translate.instant('MESSAGE.PAYMENT_FAILED'),{cssClass:'toast-danger',duration:4000});
}
});
}
})
.catch((error: string) => console.error(error));
}
[使用浏览器的检查设备检查应用程序时,我在控制台日志中收到以下消息用户取消付款对话框。 {userCancelled:true}
My ionic info请帮我修复它。在此先感谢
这里有同样的问题,@ GaneshkumarS,您发现了什么吗?