简体   繁体   English

应用程式帐单中的Android Market-新信用卡失败了,好吗?

[英]Android marketplace in app billing - new credit card fail, then ok?

I'm testing out the billing sample application provided by google: 我正在测试google提供的计费示例应用程序:

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

Everything is going ok, I got up to the part where I wanted to try buying an actual item (one that I had listed myself). 一切正常,我准备开始尝试购买实际商品(我自己列出的商品)的那一部分。 I gave it an id of "com.me.sword" for example. 例如,我给它指定了“ com.me.sword”的ID。 I'm logged in as one of my approved test accounts after a factory reset. 恢复出厂设置后,我已作为我批准的测试帐户之一登录。 The app is signed, everything else is good. 该应用程序已签名,其他一切都很好。

I go to purchase, and move into the marketplace app. 我去购买,然后进入市场应用程序。 I get prompted to add a new credit card, makes sense. 系统提示我添加新的信用卡。 After entering a real credit card, the purchase tries going through, but it then fails on the marketplace side. 输入真实的信用卡后,尝试进行购买,但是随后在市场上失败。 I get a dialog saying "Error retrieving Checkout information from server". 我收到一个对话框,提示“从服务器检索结帐信息时出错”。 DDMS shows: DDMS显示:

D/Finsky(884): [1] CarrierProvisioningAction.shouldFetchProvisioning: Required CarrierBillingParams missing. Shouldn't fetch provisioning.
D/Finsky(884): [1] CarrierProvisioningAction.run: No need to fetch provisioning from carrier.
E/Volley(884): [13] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/purchase
W/Finsky(884): [1] CheckoutPurchase.onErrorResponse: DisplayErrorMessage[Error retrieving Checkout information from server.]
E/Finsky(884): [1] CheckoutPurchase.setError: type=UNKNOWN, code=-1, message=Error retrieving Checkout information from server.

I dismiss the dialog, then try to purchase again, and it goes through ok. 我关闭了对话框,然后尝试再次购买,一切顺利。

There was probably an error where the new credit card hadn't been validated yet? 尚未验证新信用卡的地方可能存在错误? I'm wondering if this is common with marketplace, and if other bugs such as these: 我想知道这是否在市场中很常见,以及是否存在其他诸如此类的错误:

http://groups.google.com/a/googleproductforums.com/forum/#!category-topic/android-market/technical-help/eVUoYEaUwSc http://groups.google.com/a/googleproductforums.com/forum/#!category-topic/android-market/technical-help/eVUoYEaUwSc

are still plaguing developers? 还在困扰开发人员? It's kind of terrifying to go with google's billing system with these bugs - surely the average user is just going to blame us, the application developers, and we don't want to get any ratings/emails claiming that I charged their credit cards and the purchased items were never delivered. 带有这些错误的google计费系统会让人感到恐惧-当然,普通用户只会怪我们,应用程序开发人员,而且我们也不想获得任何评级/电子邮件来声称我从他们的信用卡和购买的物品从未交付。

Thanks 谢谢

In-app billing has gotten better, but it is still not particularly reliable (almost a year since initial release). 应用内结算已变得更好,但仍不是特别可靠(自首次发布以来已将近一年)。 You should be ready to handle errors in your app. 您应该已经准备好处理应用程序中的错误。 There is no way to know what the actual cause of this particular error is, but 'Unexpected response' hints at an unexpected error :) Presumably, handling (errors in) card validation should be expected and part of the purchase flow. 没有办法知道导致此特定错误的真正原因是什么,但是“意外响应”提示出现意外错误:)大概,应该期望处理(卡中的错误)卡验证以及购买流程的一部分。 Some other issues you may encounter (this is not an official Market/Play bugtracker): 您可能会遇到的其他一些问题(这不是官方的Market / Play Bugtracker):

http://code.google.com/p/marketbilling/issues/list http://code.google.com/p/marketbilling/issues/list

Good luck :) 祝好运 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM