Android在应用程序内结算DEVELOPER_PAYLOAD不透进来 [英] Android In App Billing DEVELOPER_PAYLOAD not coming through
问题描述
嘿大家。我一直在玩周围的地下城应用程序,也是我自己的账单code和pretty的多拥有一切工作,除了一个陌生感。
Hey everyone. I've been playing around the the Dungeons app and also my own billing code and pretty much have everything working except for one strangeness.
看来,无论我做什么,我不能让DEVELOPER_PAYLOAD现身在JSON签名响应。如果我读的东西吧,文档好像说,我应该看到JSON市场反应developer_payload。地牢应用程序似乎认为它应该看到JSON的developer_payload了。
It seems that no matter what I do I can't get the DEVELOPER_PAYLOAD to show up in the JSON signed response. If I'm reading thing right, the docs seem to say that I should see the developer_payload in the JSON market response. The Dungeons app seems to think it should see the developer_payload in the json too.
我还没有得到它在我的code的工作,它似乎并没有在地下城的例子无论是在我的手机的工作。
I haven't gotten it to work in my code and it doesn't seem to work in the Dungeons example either on my phone.
下面是我的code的一些片段:
Here are some snippets of my code:
Bundle request = makeRequestBundle("REQUEST_PURCHASE");
request.putString(C.DEVELOPER_PAYLOAD, "testing 123");
C.DEVELOPER_PAYLOAD是:
C.DEVELOPER_PAYLOAD is:
public static final String DEVELOPER_PAYLOAD = "DEVELOPER_PAYLOAD";
和这里是我所看到的,在购买状态变化的响应
And here's what I'm seeing in the purchase state changed responses
05-14 20:13:08.360:信息/ BillingService有(715):purchaseStateChanged得到签名数据: {"nonce":9005407554096378381,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.mypackage","productId":"android.test.purchased","purchaseTime":1305429187752,"purchaseState":0}]}
05-14 20:13:08.360: INFO/BillingService(715): purchaseStateChanged got signedData: {"nonce":9005407554096378381,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.mypackage","productId":"android.test.purchased","purchaseTime":1305429187752,"purchaseState":0}]}
在此先感谢!
编辑:我终于想通了这一点。原来,developer_payload并不重要,如果你使用任何标准的Android项目的ID才能通过。您必须使用真实的应用程序内购买的物品。
I finally figured this out. Turns out that the developer_payload doesn't come through if you're using any of the test android item ids. You have to be using real in app purchase items.
推荐答案
我终于想通了这一点。原来,developer_payload并不重要,如果你使用任何标准的Android项目的ID才能通过。您必须使用真实的应用程序内购买的物品。
I finally figured this out. Turns out that the developer_payload doesn't come through if you're using any of the test android item ids. You have to be using real in app purchase items.
这篇关于Android在应用程序内结算DEVELOPER_PAYLOAD不透进来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!