【问题标题】:Error testing In-app billing sample - Dungeons错误测试应用内计费示例 - 地下城
【发布时间】:2011-03-31 14:22:14
【问题描述】:

我正在尝试获取应用内计费示例地下城,我有一个带有我的公共 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-sn-p 中的实际令牌代码)

有什么想法吗?

【问题讨论】:

    标签: android in-app-purchase


    【解决方案1】:

    你发布了potion-001吗?

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

    您从 Android 电子市场得到的回应是什么? DEVELOPER_ERROR?

    您无法从注册 Google 商家帐户的同一 GMAIL 测试真实付款。就像您无法购买自己的应用程序一样。您不能购买自己的应用内商品。

    您需要将测试帐户添加到您的开发者页面。然后用这个账号用手机登录安卓应用市场,然后在那个手机上测试。注意要从您的市场登录新的 gmail 帐户,您必须将手机恢复出厂设置:-(

    谷歌备份:

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

    要使用实际应用内购买测试您的应用内结算实施,您需要在 Android Market 发布商网站上注册至少一个测试帐户。 您不能使用您的开发者帐户来测试完整的应用内购买过程,因为 Google Checkout 不允许您从自己那里购买商品。如果您之前没有设置过测试帐号,请查看Setting up test accounts

    【讨论】:

    • 这是真的,我用相同的 gmail 帐户进行了测试。我目前正在尝试使用另一个帐户对此进行测试。我在另一部手机上没有最新市场时遇到一些问题 - 并且 adb 无法识别设备正常工作。我会在测试时返回这个问题并提供反馈。
    • 已验证 - 从另一个帐户购买成功。
    • 应用内计费真的让我很难受。我从 2 天开始就一直在研究它,但仍然无法得到它......:@
    • 如果您需要再看一遍,这里有一个与 android.dev 不同的教程,试图简化一下:anddev.org/advanced-tutorials-f21/…
    • 您好 @Blundell 我使用了 adk 中给出的教程并按照developer.android.com/guide/market/billing/billing_testing.html 中提到的步骤操作我已经制作了产品列表,制作了测试帐户,并上传了 apk 但是当我下载它时.它没有向我显示我已经输入的产品及其价格为什么如此,你能帮我解决这个问题吗?在此先感谢....
    猜你喜欢
    • 2011-08-12
    • 2011-10-19
    • 1970-01-01
    • 2011-07-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多