UNPKG

@squadco/js

Version:

Simplify the integration process with Squad's comprehensive payment solutions using the Squad JavaScript SDK.

25 lines (24 loc) 879 B
import { AxiosInstance } from "axios"; /** * @desc * Squad JavaScript SDK * Built with ❣️ by Adedoyin Emmanuel Adeniyi https://github.com/adedoyin-emmanuel/ */ export default abstract class SquadBaseClient { protected pubilcKey: string; protected privateKey: string; protected Axios: AxiosInstance; protected baseUrl: string; /** * @desc * The environment to use for the client. If not specified, defaults to "development". */ protected environment: string; /** * @desc This creates a new instance of Squad JS SDK * @arg {string} publicKey - Squad public key * @arg {string} privateKey - Squad private key * @arg {string} environment - The environment to use for the client. If not specified, defaults to "development". */ constructor(publicKey: string, privateKey: string, environment?: string); }