本文介绍了InAPPBilling中的IABHelper和IInAppBillingService之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

在InAppBilling V3的google文档中,他们使用IInAppBillingService进行购买.检查以下网址.

In the google document for InAppBilling V3 they used IInAppBillingService to make purchases . check the below URL.

http://developer.android.com/google/play/billing/billing_integrate.html

捆绑buyIntentBundle = mService.getBuyIntent(3,getPackageName(),sku,"inapp","bGoa + V7g/yqDXvKRqq + JTFn4uQZbPiQJo4pf9RzJ");

Bundle buyIntentBundle = mService.getBuyIntent(3, getPackageName(),sku, "inapp", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");

但是在SDK附带的琐碎示例中,他们使用IABHelper进行购买.

But in the Trivial Example coming along with SDK, they used IABHelper to make purchases.

我对IABHelper是否为V2和IInAppBillingService是否为V3感到困惑.

I am having confusion like whether IABHelper is V2 and IInAppBillingService is V3.

因为您无法通过IABHelper获得可用的SKU详细信息.但是通过IInAppBillingService可以实现

because u cant get the available SKU Details through IABHelper . but through IInAppBillingService , it is possible

捆绑skuDetails = mService.getSkuDetails(3,getPackageName(),"inapp",querySkus);

Bundle skuDetails = mService.getSkuDetails(3,getPackageName(), "inapp", querySkus);

哪个是最新版本?

推荐答案

IABHelper只是包装实用程序类,旨在为您提供有关如何使用IInAppBillingService的示例.

IABHelper is just a wrapper utility class, which intends to give you an example of how IInAppBillingService is to be used.

IInAppBillingService是应用内结算API的一部分.它用于执行购买和检查状态.您可以直接使用此服务,而无需使用帮助程序类.

IInAppBillingService is a part of in-app billing API. It is used to perform purchases and check statuses. You can use this service directly and forget about the helper class.

许多人发现IABHelper更简单,并且按原样使用它.其他人使用服务而完全忽略帮助程序类.

Many people find IABHelper simpler and they use it as-is. Other people use service and ignore helper class completely.

这篇关于InAPPBilling中的IABHelper和IInAppBillingService之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 16:31