问题描述
我正在尝试使用phonegap插件在我的应用程序中进行应用程序内购买,该插件是
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
但是在沙盒测试中我是得到以下错误
plugins.inAppPurchaseManager.updatedTransactionCallback.apply(plugins.inAppPurchaseManager,[PaymentTransactionStateFailed,0,无法连接到iTunes Store,,,])
but in sandbox testing i'm getting following errorplugins.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??
推荐答案
查看InAppPurchaseManager.js,你会看到InAppPurchaseManager.prototype.updatedTransactionCallback的第一次调用是:
Take a look inside of InAppPurchaseManager.js, and you'll see the first call of InAppPurchaseManager.prototype.updatedTransactionCallback is:
alert (州);
alert(state);
将其替换为PhoneGap的首选:
Replace that with PhoneGap's preferred:
navigator.notification.alert(state);
navigator.notification.alert(state);
它应该清理得很好。
这篇关于付款交易状态失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!