Hierarchy

  • Base
    • Transactions

Constructors

  • Constructor function for the Config class.

    Parameters

    • config: Config

      The configuration options for the class.

    Returns Transactions

Methods

  • Fetches a transaction by its ID.

    Parameters

    • trxn_id: string

      The ID of the transaction.

    Returns Promise<PaymentTransactionFetchResponse>

    A promise that resolves to the transaction result.

    Example

    import { QorDirectSDK } from "qor-direct-sdk"

    const client = new QorDirectSDK({
    apiKey: 'YOUR_API_KEY',
    clientKey: 'YOUR_CLIENT_KEY',
    });

    client.transactions.fetchPaymentTransactionById("326881109961722").then((a) => console.log(a))
  • Sends a request to the specified endpoint with optional query parameters and options.

    Type Parameters

    • T

    Parameters

    • endpoint: string

      The endpoint to send the request to.

    • Optional queryParams: Record<string, any>

      Optional query parameters for the request.

    • Optional options: RequestInit

      Optional additional options for the request.

    Returns Promise<T>

    A promise that resolves to the response data.

Generated using TypeDoc