Android应用程式内计费误差:此产品再也购买。 (错误code:IAB-DPTL) [英] Android in-app billing Error: This item could no be purchased. (Error code: IAB-DPTL)

查看:508
本文介绍了Android应用程式内计费误差:此产品再也购买。 (错误code:IAB-DPTL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Android应用内计费系统。
我测试了魔域应用程序示例,没有任何问题。

I'm just beginning to use the android in-app billing system. I tested the Dungeons application sample without any problems.

所以我想在应用集成在自己的应用程序,但是当我使用声明的productId或静态测试ID,我得到了同样的错误:

So I'm trying to integrate in-app in my own application, but when I use declared productId or static test id, I'm getting the same error:


This item could not be purchased. (Error code: IAB-DPTL)

此应用程序已经在市场上。我上传了一个签名的版本,我也推
在手机上(因此它的两侧的同一版本)。我添加的电子邮件至极的手机上用作测试帐户。我要激活我的应用程序? (承担的风险,删除当前发布的应用程序?)

This application is already on the market. I uploaded a signed version that I also pushed on the phone (so it's the same version on both sides). I added the email wich is used on the phone as a test account. Should I activate my application ? (incurring the risk to remove the current published application ?)

我不明白我错过了什么,我没有能够找到的有关在网络上此错误code什么。

I don't see what I'm missing, and I'm not able to find anything about this error code on the web.

我在做什么错了?

推荐答案

好吧,我找到了解决办法!

Ok I found the solution !!!

该错误是直接由payloadContent我在联想到产品ID引起的
购买请求。

The bug is directly caused by the "payloadContent" which I associate to the productId during the purchase request.

我用我的购买产品的成JSON转换,并把它作为开发有效载荷的内容。 (想了恢复阶段很有用...)

I used to convert my purchasable item into JSON and to put it as the developer payload content. (thought useful for the restoration phase...)

我测试删除此payloadContent然后我没有更多的问题。

I tested to remove this payloadContent and then I had no more problems.

我觉得在不同的交易中使用的数据格式是JSON等JSON有效载荷内容字段应该干扰等一些领域。(如标题或链接)

I think the data format used during the different transactions is JSON and so JSON payload content field should interfere with some waited fields.. (such "title" or "link")

更新:

正如尼古拉Elenkov所述,错误是最有可能通过有效载荷的长度引起的,和JSON似乎工作。所以在developper有效载荷大小的限制:256个字符

As Nikolay Elenkov said, the error is most probably caused by the length of the payload, and JSON seems to work. So there is a limitation in the developper payload size: 256 characters.

和我们认为的错误code:IAB-DPTL直接meens:在应用内结算 - 开发者负载过长

And we think that the error code:"IAB-DPTL" directly meens: "In App Billing - Developer Payload Too Long"

感谢尼古拉!

这篇关于Android应用程式内计费误差:此产品再也购买。 (错误code:IAB-DPTL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆