开发者

Error testing In-app billing sample - Dungeons

开发者 https://www.devze.com 2023-02-20 20:40 出处:网络
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 m

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] LocalAsset开发者_Python百科Database.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

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

Any ideas whats goes wrong?


Have you published the potion-001?

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

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

You cannot test real payments from the SAME GMAIL as the google merchant account is registered to. The same way you can't purchase your own apps. You can't purchase your own inapp items.

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 :-(

Google Backup:

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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号