@spreeloop/mtn_momo
Version:
A mtn momo api integration package
21 lines • 1.26 kB
TypeScript
import { InitializeMtnMomoPaymentRequest, InitializeMtnMomoResponse, MtnMomoPaymentConfigs } from "../utils/request_model";
/**
* Initializes an MTN MOMO payment transaction by validating the provided parameters
* and invoking the internal payment initialization function.
*
* @param {Object} params - The parameters for initializing the payment.
* @param {InitializeMtnMomoPaymentRequest} params.mobileInitParams - The request details for the payment.
* @param {MtnMomoPaymentParams} params.paymentConfig - Configuration parameters for the payment.
* @param {string} params.endPoint - The API endpoint for the payment request.
* @param {string} params.accessToken - The access token for authorization.
* @returns {Promise<InitializeMtnMomoResponse>} - The response from the payment initialization process.
*
* Logs a warning and returns an error response if any required parameter is missing.
*/
export declare function initializeMtnMomoPayment({ mobileInitParams, paymentConfig, endPoint, accessToken, }: {
mobileInitParams: InitializeMtnMomoPaymentRequest;
paymentConfig: MtnMomoPaymentConfigs;
endPoint: string;
accessToken: string;
}): Promise<InitializeMtnMomoResponse>;
//# sourceMappingURL=initialize_om_payment.d.ts.map