mpesa-snap
Version:
Mpesa Add-on
18 lines (17 loc) • 565 B
TypeScript
import { Enviroment } from "../types";
type TransactionType = "CustomerPayBillOnline" | "CustomerBuyGoodsOnline";
type StkPushPayload = {
shortCode: string | Number;
password: string;
transactionType?: TransactionType;
amount: Number;
phoneNumber: string;
callBackUrl: string;
accountReference?: string;
description?: string;
consumer_key: string;
consumer_secret: string;
environment: Enviroment;
};
export declare const stkPush: (payload: StkPushPayload) => Promise<import("axios").AxiosResponse<any, any>>;
export {};