Payment Transaction State Failed

痴心易碎 提交于 2019-12-11 13:54:53

问题


I am trying to make In-app purchase in my application using phonegap plugin which is https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager

but in sandbox testing i'm getting following error plugins.inAppPurchaseManager.updatedTransactionCallback.apply(plugins.inAppPurchaseManager, ["PaymentTransactionStateFailed",0,"Cannot connect to iTunes Store","","",""])

and then the application gets struck...can anyone help me out with this??


回答1:


Take a look inside of InAppPurchaseManager.js, and you'll see the first call of InAppPurchaseManager.prototype.updatedTransactionCallback is:

alert(state);

Replace that with PhoneGap's preferred:

navigator.notification.alert(state);

And it should clear up fine.



来源:https://stackoverflow.com/questions/16421002/payment-transaction-state-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!