错误的测试应用内计费样本 - 地下城 [英] Error testing In-app billing sample - Dungeons

查看:133
本文介绍了错误的测试应用内计费样本 - 地下城的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让应用内结算样本地下城,我有我的公开-ID的应用程序草案,我已经出版了非托管项目potion_001。我用相同的谷歌帐户的设备作为注册商户帐户。

I'm trying to get the in-app billing sample Dungeons, I have a draft application with my public-id, and I have published unmanaged item potion_001. I use same google-account on device as registered merchant-account.

静态测试工作正常,但试图购买药水,我得到的时候:

Static test works fine but when trying to buy the potion I get:

DEBUG/vending(1437): [1] BaseBuyPageActivity.onPostResponse(): {PurchaseResult=ERROR_GAIA_AUTH, PurchaseInfo=PurchaseInfo=, SignupStatus=NEW_USER, TId=null, ShoppingCart=null, RefundPolicy=[], ErrorFields=[]}
DEBUG/vending(1437): [1] BaseBuyPageActivity.onPostResponse(): Invalid checkout token: { /.../ }
DEBUG/vending(1437): [1] BaseBuyPageActivity.onPostResponse(): {PurchaseResult=OK, PurchaseInfo=PurchaseInfo=, SignupStatus=SIGNED_UP, TId=300449045376486, ShoppingCart=[ItemPrice=7,00 kr, TaxInclusive=, TaxExclusive=, Total=7,00 kr, HasTaxMessage=false, TaxMessage=null, HasFooterMessage=false, FooterMessage=null], RefundPolicy=<b>Ingen återbetalning.</b><br/><a href="http://market.android.com/support/bin/answer.py?answer=1061913">Info</a><br/><a href="http://www.google.com/mobile/android/fsa-notification.html">Reglerat av FSA, UK</a>, Instruments=[[Id=724253266825206, Name=VISA xxx-xxxx Invalid=false Type=CREDIT_CARD] ], DefaultBillingInstrument=724253266825206, ErrorFields=[]}
DEBUG/vending(1437): [1] BaseBuyPageActivity.shouldAddCarrierBilling(): isProvisioned(): false isSavedonServer(): false radio available? true
DEBUG/vending(1437): [1] BaseBuyPageActivity.shouldAddCarrierBilling(): isProvisioned(): false isSavedonServer(): false radio available? true
DEBUG/vending(1437): [200] BaseAction.run(): ApiException: com.android.vending.api.ApiException: Error from backend. Request=com.android.vending.model.PurchaseOrderRequest, Response=INTERNAL_SERVICE_ERROR
DEBUG/vending(1437): [1] LocalAssetDatabase.notifyListener(): inapp:com.package.billingtest:potion_001 / UNINSTALLED
DEBUG/vending(1437): [1] LocalAssetCache.updateOneAsset(): No local info for inapp:com.package.billingtest:potion_001    
INFO/vending(1437): [1] BaseAction.displayErrorUi(): Server error in com.android.vending.billing.PurchaseOrderAction: com.android.vending.api.ApiException: Error from backend. Request=com.android.vending.model.PurchaseOrderRequest, Response=INTERNAL_SERVICE_ERROR
DEBUG/vending(1437): [1] LocalAssetDatabase.notifyListener(): inapp:se.xebralabs.billingTest:potion_001 / UNINSTALLED
DEBUG/vending(1437): [1] LocalAssetCache.updateOneAsset(): No local info for inapp:com.package.billingtest:potion_001
INFO/vending(1437): [1] BaseAction.displayErrorUi(): Server error in com.android.vending.billing.PurchaseOrderAction: com.android.vending.api.ApiException: Error from backend. Request=com.android.vending.model.PurchaseOrderRequest, Response=INTERNAL_SERVICE_ERROR

(我删除了这个logcat中,片段的实际令牌code)

(I removed the actual token code in this logcat-snippet)

任何想法什么不顺心?

推荐答案

你有没有发表的药水,001?

Have you published the potion-001?

你有没有从同一个APK安装在您的测试手机应用程序,你上传到市场?即把它放在你的SD卡,并手动安装它(通过月食没有安装的话)?

Have you installed the app on your test phone from the same APK as you uploaded to the market? i.e. Put it on your SD cards and manually installed it (Not installed it through eclipse)?

什么是你从Android Market取回的反应如何? DEVELOPER_ERROR?

What is the response you are getting back from the Android Market? DEVELOPER_ERROR?

从相同的GMAIL作为谷歌商家帐户注册到你无法测试真正付款。您不能购买自己的应用程序相同的方式。你不能购买自己inapp项目。

您将需要一个测试帐户添加到您的开发者页面。然后有一个手机登录到Android应用程序市场上使用此帐户,然后在该电话测试。 N.B.登录到您的市场,你必须工厂新的Gmail帐户重置电话: - (

You will need to add a test account to your developer page. Then have a phone sign into the android app market with this account and then test on that phone. n.b. to sign into a new gmail account from your market you have to factory reset the phone :-(

谷歌备份:

http://developer.android.com/guide/market/billing/ billing_testing.html

要测试您的应用内计费的实现实际应用内购买,您需要注册在Android Market发布者网站至少有一个测试帐号。 您不能使用你的开发者账户,以测试完整的应用程序内购买的过程,因为谷歌结帐不会让你买的起自己的项目。如果你还没有建立之前测试帐户,请参阅设置测试帐户

To test your in-app billing implementation with actual in-app purchases, you will need to register at least one test account on the Android Market publisher site. You cannot use your developer account to test the complete in-app purchase process because Google Checkout does not let you buy items from yourself. If you have not set up test accounts before, see Setting up test accounts.

这篇关于错误的测试应用内计费样本 - 地下城的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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