UNPKG

mpesa-snap

Version:

Mpesa Add-on

34 lines (33 loc) 1.02 kB
import { Enviroment } from "../types"; type PaymentFrequency = "One Off" | "Daily" | "Weekly" | "Monthly" | "Bi-Monthly" | "Quarterly" | "Half Yearly" | "Yearly"; type TransactionType = "Standing Order Customer Pay Bill" | "Standing Order Customer Pay Marchant"; type Payload = { consumer_key: string; consumer_secret: string; environment: Enviroment; orderName: string; shortCode: string | number; amount: string | number; phoneNumber: string; resultUrl: string; orderReference: string; transactionType: TransactionType; frequency: PaymentFrequency; startDate: Date | string; endDate: Date | string; remarks?: string; }; type Result = { ResponseHeader: { responseRefID: string; responseCode: string; responseDescription: string; ResultDesc: string; }; ResponseBody: { responseDescription: string; responseCode: string; }; }; export declare const ratiba: (payload: Payload) => Promise<Result>; export {};