pesapal-node-sdk
Version:
Node.js SDK for integrating with Pesapal payment gateway. Provides a simple interface for processing payments, checking status, and handling callbacks.
13 lines (12 loc) • 593 B
TypeScript
import { AuthService } from './AuthService';
import { IPaymentRequest } from '../interfaces/IPayment.interface';
import { HttpClient } from './HttpClient';
import { IPesapalConfig } from '../interfaces/IPesapalConfig.interface';
export declare class PaymentService {
private auth;
private http;
private config;
constructor(auth: AuthService, http: HttpClient, config: IPesapalConfig);
submitOrder(payment: IPaymentRequest): Promise<import("axios").AxiosResponse<unknown, any>>;
getPaymentStatus(orderId: string): Promise<import("axios").AxiosResponse<unknown, any>>;
}