0
我有一个应用程序,可以从谷歌播放使用In-app purchase
下载。在我的应用程序中使用应用程序购买需要信息?
我使用的示例产品ID
android.test.purchased
从谷歌播放购买的产品。我可以购买产品并获得烤面包信息Thank you. Your item will appear shortly
,但我无法看到我购买的logcat消息和物品。这是我正在使用的代码public Handler mTransactionHandler = new Handler() { public void handleMessage(android.os.Message msg) { Log.i(TAG, "Transaction complete"); Log.i(TAG, "Transaction status: " + BillingHelper.latestPurchase.purchaseState); Log.i(TAG, "Item purchased is: " + BillingHelper.latestPurchase.productId); if (BillingHelper.latestPurchase.isPurchased()) { Log.i(TAG, " is purchased completed "); showItem(); } };
};
如果我使用自己的产品编号购买,是否需要提供原始信用卡详细资料? 要购买产品,我使用测试帐户作为设备中的主要帐户。
没关系,为什么我无法看到所购买的产品。 –
对于该代码,我可以看到我的logcat购买的产品不知道你! :( – Villan
我可以更新完整的代码,但我用这个 –