nestjs-esewa
Version:
This is simple wrapper for Esewa Payment extended from @dallotech/nestjs-esewa. It supports Epay-V2 and transaction verification for Esewa SDK, but later more will be added. Just ping us or open pull request and contribute :)
24 lines • 976 B
TypeScript
import { EsewaDto, EsewaOptions, EsewaRequestDto, EsewaResponseDto } from "./esewa.interface";
import { HttpService } from "@nestjs/axios";
export declare class EsewaService {
private readonly options;
private readonly httpService;
private readonly paymentMode;
private readonly productCode;
private readonly paymentUrlTest;
private readonly paymentUrl;
private readonly validateUrlTest;
private readonly validateUrl;
private readonly validateUrlMobile;
private readonly merchantId;
private readonly merchantSecret;
private readonly secretKey;
constructor(options: EsewaOptions, httpService: HttpService);
private static getMessage;
private static decodeBase64ToJson;
init(data: EsewaRequestDto): EsewaDto;
verify(data: any): Promise<EsewaResponseDto>;
verifyMobile(data: any): Promise<import("axios").AxiosResponse<any, any>>;
private generateSignature;
}
//# sourceMappingURL=esewa.service.d.ts.map