Skip to main content
Solved

What is replacement for isBillingSupported method in Android sdk v3.1?

  • May 19, 2022
  • 1 reply
  • 88 views

Forum|alt.badge.img+5

We are migrating from sdk v3.x for android (java).

The isBillingSupported method is not marked as deprecated in the new sdk, it is just gone. What is the replacement for this functionality?

 

from v3.1

Purchases.isBillingSupported(this, new com.revenuecat.purchases.interfaces.Callback<Boolean>() {
            @Override
            public void onReceived(Boolean isSupported) {
                if (isSupported) {
                    // Billing Services are available
                    queryStoreInventory();
                } else {
                    openPurchasingOffDialog();
                }
            }
        });

 

Best answer by cody

Hey @appa11y!

The alternative for `isBillingSupported` from 3.x is `canMakePayments` in 5.x: https://github.com/RevenueCat/purchases-android/blob/main/purchases/src/main/kotlin/com/revenuecat/purchases/Purchases.kt#L2166

View original
Did this post help you find an answer to your question?

1 reply

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 497 replies
  • Answer
  • May 20, 2022

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings