我正在遵循这个文档来实现google pay: https://developer.android.com/google/play/billing/billing_library_overview 运行此功能并购买产品后: fun buy() {
val skuList = listOf("vip_small")
if (billingClient.isReady) {
val params = SkuDetailsParams
.newBuilder()
.setSkusLi
问题是,在执行InApp购买的过程中,单击按钮,响应结果是OK,但没有出现购买对话框,这里是代码 //To query Google Play for in-app product details, call this method
mBillingClient.querySkuDetailsAsync(params.build(),
new SkuDetailsResponseListener() {
@Override
public void onSkuDetailsResponse(int
我正在使用带有 IabHelper类的Google Play计费API v3测试应用内购买。如果我创建一个签名的APK并将其安装在我的测试设备上,购买产品就可以正常工作(),但如果我直接从Eclipse运行我的应用程序(即未签名)并尝试触发购买,Play Store会显示以下消息,而不是购买对话框:
Error
This version of the application is not configured for billing through Google Play.
Check the help center for more information.
和IabHelper日志输出:
Google play计费购买结果在google play计费库中购买成功后显示空列表。
在购买产品时,它会按预期返回列表。在导航到两个屏幕后,如果我再次检查go-to purchase屏幕,同一个应用程序的购买列表是空的。
为什么导航到屏幕后采购列表为空?
if (billingClient.isReady()) {
Purchase.PurchasesResult purchasesResult = billingClient.queryPurchases(BillingClient.SkuType.INAPP);
List