2011-03-31 24 views
2

我试图获得应用内结算示例地下城,我有一个使用公共标识的草稿应用程序,并且已发布非托管项目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中 - 摘录的实际令牌代码)

任何想法什么不顺心?

回答

9

您是否发布了药水-001?

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

您从Android Market回来的回应是什么? DEVELOPER_ERROR?

您无法在Google商家帐户注册时从相同GMAIL测试真实付款。与您无法购买自己的应用程序的方式相同。你不能购买你自己的inapp物品。

您将需要添加一个测试帐户到您的开发者页面。然后用这个帐户将手机登录到Android应用市场,然后在该手机上进行测试。注:登录到您的市场新的Gmail帐户,你必须恢复出厂设置的电话:-(

谷歌备份:

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

为了测试实际在 - 您的应用内结算实施您需要在Android Market发布商网站上注册至少一个测试帐户由于Google Checkout不允许您从自己购买商品,因此您无法使用自己的开发者帐户来测试完整的应用内购买流程。您以前未设置测试帐户,请参见Setting up test accounts

+0

确实,我使用相同的Gmail帐户进行测试。我目前正在尝试使用另一个帐户进行测试。我有一些问题没有在我的其他手机上的最新市场 - 并且adb没有认识到设备工作正常..我会在测试时回到这个问题的反馈。 – Tapirboy 2011-04-06 08:41:30

+0

已验证 - 从另一个帐户购买已成功。 – Tapirboy 2011-04-06 13:39:35

+0

应用内结算真的让我很难过。从2天开始我一直在努力,但仍然无法获得它......:@ – 2011-06-02 16:36:02