【发布时间】:2016-08-11 19:29:34
【问题描述】:
我正在我的一个应用程序中添加应用内计费。 我创建了一个测试帐户并添加了一张信用卡。我买了一次产品,一切都很好。 现在我想再次测试这个相同的流程。我该怎么做?
每当我尝试购买商品时,以下代码中的pendingIntent 始终为空。
Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(),
KEY_AD_FREE, "inapp", "");
PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
是因为我已经购买了产品,还是有其他问题?
【问题讨论】:
-
如果对您有帮助,请查看SO question。
标签: android google-play google-play-services in-app-billing