付款交易状态失败 [英] Payment Transaction State Failed

查看:279
本文介绍了付款交易状态失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用phonegap插件在我的应用程序中进行应用程序内购买,该插件是 https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager

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 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??

推荐答案

查看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);

它应该清理得很好。

这篇关于付款交易状态失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆