@azizuysal/wallet-kit API Documentation - v2.0.0
    Preparing search index...

    Type Alias WalletErrorCode

    WalletErrorCode:
        | "INVALID_PASS"
        | "UNSUPPORTED_VERSION"
        | "ERR_WALLET_NOT_AVAILABLE"
        | "ERR_WALLET_ACTIVITY_NULL"
        | "ERR_WALLET_MULTIPLE_NOT_SUPPORTED"
        | "ERR_WALLET_IN_PROGRESS"
        | "ERR_WALLET_UNKNOWN"

    Error codes that can be returned by wallet operations.

    • INVALID_PASS - The pass data is missing, empty, or not in a recognized wallet pass format (neither a base64-encoded .pkpass nor a JWT).
    • UNSUPPORTED_VERSION - The pass version is not supported (iOS only).
    • ERR_WALLET_NOT_AVAILABLE - The platform wallet cannot add passes.
    • ERR_WALLET_ACTIVITY_NULL - Android-specific: Activity context is null.
    • ERR_WALLET_MULTIPLE_NOT_SUPPORTED - Android-specific: the Google Wallet API only accepts a single JWT per call. Combine multiple passes into one JWT on your server before calling WalletKitModule.addPasses.
    • ERR_WALLET_IN_PROGRESS - A previous add-pass call is still awaiting a result. Wait for it to resolve or reject before issuing another.
    • ERR_WALLET_UNKNOWN - An availability, launch, presentation, lifecycle, or unexpected provider failure occurred.

    User cancellation is not reported as a rejection on either platform. The add-pass promise resolves with false when the user cancels; the same outcome is also emitted via the AddPassCompleted event for consumers who prefer the event API — see createWalletEventEmitter.