Skip to main content
Answer

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

  • May 19, 2022
  • 1 reply
  • 120 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

This post has been closed for comments

1 reply

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

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