UNPKG

pesapal-node-sdk

Version:

Node.js SDK for integrating with Pesapal payment gateway. Provides a simple interface for processing payments, checking status, and handling callbacks.

9 lines (8 loc) 379 B
import { IPesapalConfig } from '../interfaces/IPesapalConfig.interface'; export declare class HttpClient { private config; private client; constructor(config: IPesapalConfig); post<T>(url: string, data: any, token?: string): Promise<import("axios").AxiosResponse<T, any>>; get<T>(url: string, token: string): Promise<import("axios").AxiosResponse<T, any>>; }