Android in-app billing Error: This item could no be purchased. (Error code: IAB-DPTL)

倾然丶 夕夏残阳落幕 提交于 2019-12-05 06:43:38

Ok I found the solution !!!

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

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

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

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

UPDATE:

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.

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

Thanks Nikolay !

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!