简体   繁体   English

Android应用内购买,订单取消

[英]Android in-app purchase, getting order cancelled

I have integrated in app purchase into my android application. 我已将购买应用程序集成到我的android应用程序中。 When I get to the purchase screen to select my credit card, 4111111111111111 and other test credit cards fail. 当我进入购买屏幕以选择我的信用卡时,4111111111111111和其他测试信用卡都失败了。 So I try my real credit card. 因此,我尝试使用我的真实信用卡。 This too fails, everytime I get a "Error. Your payment could not be processed. Sign In to your Google Wallet account to request support. 每当我收到“错误”时,此操作也会失败。无法处理您的付款。登录到您的Google电子钱包帐户以请求支持。

Email id x@gmail.com is the primary account on my device (yes I am testing on a device). 电子邮件ID x@gmail.com是设备上的主要帐户(是,我正在设备上进行测试)。 x@gmail.com is also setup as a "test account" on my play.google.com->Edit profile page. 在我的play.google.com->“编辑个人资料”页面上,还将x@gmail.com设置为“测试帐户”。 What could I be doing wrong ? 我可能做错了什么?

Edit : My launched application in the market does not have "BILLING" permission enabled. 编辑:我在市场上启动的应用程序没有启用“结算”权限。 My new version uploaded, but not "activated" has BILLING permission. 我的新版本已上传,但未“激活”,具有BILLING权限。 My test app and my online "latest inactive app" both are of the same version, versioncode. 我的测试应用程序和在线“最新不活动的应用程序”都具有相同的版本,即版本代码。 Also I have "published my in app unmanaged products" (since any way my live product wont have in app capability). 我还“发布了我的应用内非托管产品”(因为我的实时产品不会具有应用内功能)。

Yes, my public key is correctly added to my Security.java file. 是的,我的公钥已正确添加到我的Security.java文件中。

Google play merchant account is supported only in below mentioned countries. 仅以下提到的国家/地区支持Google Play商家帐户。 If you are residing in India and don't have a bank account in any of below mentioned countries you can't sell your paid app. 如果您居住在印度,并且在以下提到的任何一个国家/地区都没有银行帐户,则不能出售您的付费应用。

Supported locations for merchants 商家支持的位置

The test account was not my primary account on my phone. 测试帐户不是我手机上的主要帐户。 I had to remove all accounts and create the test account as the primary account on my phone for it to work. 我必须删除所有帐户,然后将测试帐户创建为手机上的主要帐户,才能正常使用。

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

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