UNPKG

mpesa-snap

Version:

Mpesa Add-on

25 lines (24 loc) 654 B
import { Enviroment } from "../types"; type MpesaCredentials = { consumer_key: string; consumer_secret: string; shortCode: string | number; password: string; }; type MpesaStkPushPayload = { amount: number; phoneNumber: string; accountRef?: string; description?: string; callBackUrl: string; }; export declare class Mpesa { private key; private secret; private shortCode; private environment; private password; constructor(credentials: MpesaCredentials, environment: Enviroment); stkPush(data: MpesaStkPushPayload): Promise<import("axios").AxiosResponse<any, any> | undefined>; } export {};