Package 

Class BillingError

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class BillingError
    extends Exception
                        

    Typed billing errors emitted by the SDK. Mirrors iOS Billing/NativeBillingManager.swiftpublic enum BillingError. Hosts can when over this sealed class in onPaywallPurchaseFailed / onPurchaseFailed callbacks instead of regex-matching error messages.

    SPEC-070-A finalization ยง3.2.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class BillingError.ProductNotFound

      Product id was not found by Play Billing or the local catalog.

      public final class BillingError.VerificationFailed

      Server-side receipt verification failed (signature/state/refund).

      public final class BillingError.NetworkError

      Network error during purchase or verification call.

      public final class BillingError.ServerError

      Server returned a non-2xx with a message body the SDK couldn't decode.

      public final class BillingError.ProviderNotAvailable

      Selected billing provider (RevenueCat / Adapty) wasn't on the classpath at runtime so the call could not be dispatched. iOS uses this when SwiftPM extras are excluded from the host target.

      public final class BillingError.UserCancelled

      User cancelled the Play Billing dialog (BillingResponseCode.USER_CANCELED).

      public final class BillingError.Pending

      Pending purchase (e.g. parent approval, deferred payment).

    • Method Summary

      Modifier and Type Method Description
      Throwable getCause()
      String getMessage()
      • Methods inherited from class java.lang.Exception

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait