UNPKG

mpesa-connect

Version:

SDK para M-Pesa API

25 lines (24 loc) 987 B
export function initializeMpesa({ publicKey, apiKey, serviceProviderCode, env, }: { publicKey: any; apiKey: any; serviceProviderCode: any; env: any; }): { c2b: (transactionReference: any, customerMSISDN: any, amount: any, thirdPartyReference: any, serviceProviderCodeParam?: any) => Promise<{ response: any; status: any; }>; b2c: (transactionReference: any, customerMSISDN: any, amount: any, thirdPartyReference: any, serviceProviderCodeParam?: any) => Promise<{ response: any; status: any; }>; transactionReversal: (transactionID: any, securityCredential: any, initiatorIdentifier: any, thirdPartyReference: any, serviceProviderCodeParam: any, reversalAmount: any) => Promise<{ response: any; status: any; }>; status: (thirdPartyReference: any, queryReference: any, serviceProviderCodeParam?: any) => Promise<{ response: any; status: any; }>; getToken: () => string; };