modem-pay
Version:
A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.
19 lines (18 loc) • 640 B
TypeScript
import { AxiosRequestConfig } from "axios";
export default class BaseResource {
protected apiKey: string;
protected apiURL: string;
private readonly maxRetries;
private readonly timeout;
private readonly retryDelay;
private static readonly MAX_DELAY;
private readonly enableRetryLogging;
constructor(apiKey: string, maxRetries: number, timeout: number, retryDelay?: number);
protected getHeaders(): {
Authorization: string;
};
protected request<T>(config: AxiosRequestConfig, retries?: number): Promise<T>;
private calculateBackoff;
private isRetryableError;
private delay;
}