UNPKG

afrimomo-sdk

Version:

A unified SDK for African payment providers

15 lines 908 B
import { BaseService } from "@afrimomo-sdk/utils/baseService"; import type { AccountInfo } from "@afrimomo-sdk/services/paychangu/types/account"; import type { PaymentDataInfo } from "@afrimomo-sdk/services/paychangu/types/payment"; import type { PayChanguPaymentResponse, PayChanguTransactionResponse } from "./types/response"; export * from "./types"; export declare class PayChangu extends BaseService { private readonly networkManager; constructor(secretKey: string); initiatePayment(paymentData: PaymentDataInfo, accountInfo: AccountInfo): Promise<PayChanguPaymentResponse>; getTransactionById(transactionId: string): Promise<PayChanguTransactionResponse>; refreshPaymentSession(paymentData: PaymentDataInfo, accountInfo: AccountInfo): Promise<PayChanguPaymentResponse>; private generateTransactionId; private convertToPreferredCurrency; } //# sourceMappingURL=index.d.ts.map