Search code examples
androidin-app-billingandroid-billingplay-billing-library

Where do I find BILLING_RESULT_OK for Google Play Billing isFeatureSupported call?


The google play developer documentation for in-app-purchase subscriptions states

Before your app enters the billing flow, you can call isFeatureSupported() to determine whether the device supports the products you want to sell

When calling this method, it's javadoc states

returns BILLING_RESULT_OK if feature is supported and corresponding error code otherwise

I cannot locate the BILLING_RESULT_OK constant in any of the billing classes and cant find the reference in the documentation. What is the right value/constant to compare the response code to?

Is BILLING_RESULT_OK the same as BillingClient.BillingResponseCode.OK?


Solution

  • Use BillingClient.BillingResponseCode.OK

    The documentation hasn't been updated for some time now. Even the official sample uses BillingClient.BillingResponseCode.OK.