付款交易状态失败
我正在尝试使用PhoneGap插件在应用程序中购买,它是https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager
但在沙箱testing我得到以下错误plugins.inAppPurchaseManager.updatedTransactionCallback.apply(plugins.inAppPurchaseManager,[“PaymentTransactionStateFailed”,0,“无法连接到iTunes Store”,“”,“”,“”])
然后应用程序被击中…任何人都可以帮助我这个?
看一下InAppPurchaseManager.js,你会看到InAppPurchaseManager.prototype.updatedTransactionCallback的第一个调用是:
警报(状态);
将其replace为PhoneGap的首选:
navigator.notification.alert(状态);
它应该清理罚款。