OrderKuota-Wrapper - v1.0.9
    Preparing search index...

    Class OrderKuota

    OrderKuota API wrapper for Indonesian QRIS payment system.

    Supports OTP authentication, token management, QRIS payments, and QR code generation.

    const client = new OrderKuota({
    username: 'your-username',
    password: 'your-password'
    });

    const otp = await client.getOTP();
    const token = await client.getToken('123456');
    const payment = await client.generateQRISAjaib(10000);
    Index

    Constructors

    Methods

    • Checks current account balance from QRIS menu data.

      Returns Promise<any>

      Promise with balance and QRIS balance information

    • Fetches available QRIS menu options and account status.

      Returns Promise<any>

      Promise with QRIS menu data and account information

    • Generate QR code image from QRIS string

      Parameters

      • qrisString: string

        QRIS string to convert

      • options: QRCodeToDataURLOptions = {}

        QR code generation options

      Returns Promise<string>

      Promise with base64 encoded QR image

    • Generates QRIS Ajaib payment with specified amount.

      Parameters

      • amount: number = 1000

        Payment amount in Indonesian Rupiah (default: 1000)

      Returns Promise<any>

      Promise with QRIS payment data and QR string

    • Gets current configuration without sensitive data.

      Returns Omit<OrderKuotaConfig, "password">

      Configuration object excluding password

    • Request OTP for authentication

      Returns Promise<any>

      Promise with OTP response including email

    • Get QRIS transaction history

      Parameters

      • historyType: string = "qris_history"

        Type of history ('qris_history' or 'qris_ajaib_history')

      • options: HistoryOptions = {}

        Optional filters for history

      Returns Promise<any>

      Promise with transaction history

    • Authenticates and retrieves access token using OTP.

      Parameters

      • otp: string

        OTP code received via email

      Returns Promise<any>

      Promise with authentication token and user data

    • Gets current authentication token.

      Returns undefined | string

      Current token or undefined if not set

    • Checks if authentication token is available.

      Returns boolean

      True if token is set and ready for API calls

    • Validates if configuration has required fields.

      Returns boolean

      True if username and password are both set

    • Sets authentication token manually.

      Parameters

      • token: string

        Authentication token to set

      Returns void