本文介绍了在2020年6月23日之前打开此应用以确认您的订阅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开此应用以在2020年6月23日之前确认您的订阅.是什么原因造成的?

Open this app to confirm your subscription before Jun 23, 2020. What is causing this?

推荐答案

PurchaseResult返回我的购买,确认为false.使用以下代码,设法解决了该问题.

PurchaseResult was returning my purchases with acknowledge as false. Using the following code, managed to fix the issue.

for (Purchase purchase: purchasesResult.getPurchasesList()) {
                AcknowledgePurchaseParams acknowledgePurchaseParams =
                        AcknowledgePurchaseParams.newBuilder()
                                .setPurchaseToken(purchase.getPurchaseToken())
                                .build();
                acknowledgePurchaseParams.getDeveloperPayload();

                AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener = new AcknowledgePurchaseResponseListener() {
                    @Override
                    public void onAcknowledgePurchaseResponse(BillingResult billingResult) {
                        BillingResult billingResult1 = billingResult;
                    }

                };

                mBillingClient.acknowledgePurchase(acknowledgePurchaseParams, acknowledgePurchaseResponseListener);
            }

这篇关于在2020年6月23日之前打开此应用以确认您的订阅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 15:21