Solved

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

  • 19 May 2022
  • 1 reply
  • 74 views

Badge +4

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();
}
}
});

 

icon

Best answer by cody 20 May 2022, 22:49

View original

1 reply

Userlevel 6
Badge +8

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

Reply