测试应用内结算示例时出错 - Dungeons

时间:2011-03-31 14:22:15

标签: android in-app-purchase

我正在尝试获取应用内付费示例Dungeons,我有一个带有我的public-id的草稿应用程序,并且我已经发布了非托管项目potion_001。我在设备上使用相同的Google帐户作为注册商家帐户。

静态测试工作正常,但在尝试购买药水时我得到了:

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-snippet中的实际令牌代码)

任何想法都出错了?

1 个答案:

答案 0 :(得分:9)

您是否已发布了药水-001?

您是否在上传到市场的同一APK上安装了测试手机上的应用?即把它放在SD卡上并手动安装(不是通过eclipse安装)?

您从Android电子市场获得的回复是什么? DEVELOPER_ERROR?

您无法在注册Google商家帐户时测试来自SAME GMAIL的实际付款。与您无法购买自己的应用程序的方式相同。您无法购买自己的inapp项目。

您需要在开发者页面中添加测试帐户。然后使用此帐户登录Android应用程序市场,然后在该手机上进行测试。注:要从您的市场登录新的Gmail帐户,您必须出厂重置手机: - (

Google备份:

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

  

要通过实际的应用内购买测试您的应用内结算实施,您需要在Android电子市场发布商网站上注册至少一个测试帐户。 您无法使用自己的开发者帐户来测试完整的应用内购买流程,因为Google Checkout不允许您自行购买商品。如果您之前未设置测试帐户,请参阅Setting up test accounts