Class DarajaCredentials

Remarks

This class manages all credentials required to invoke the various Daraja APIs

Hierarchy

  • DarajaCredentials

Constructors

Properties

Constructors

  • Parameters

    • options: {
          consumerKey: string;
          consumerSecret: string;
          environment: undefined | "sandbox" | "production";
      }
      • consumerKey: string

        This is the Daraja app consumer key

      • consumerSecret: string

        This is the Daraja app consumer secret

      • environment: undefined | "sandbox" | "production"

        This is the Daraja environment in which the app was created. (default = 'sandbox')

    Returns DarajaCredentials

Properties

http: AxiosInstance