@orenda-inc/nestjs-webx-pay
Version:
NestJS module for WebX Pay integration
18 lines (17 loc) • 714 B
TypeScript
import { Request, Response } from 'express';
import { PaymentRequestDto } from '../dto/payment.dto';
import { PaymentResponse, WebXPayModuleConfig } from '../interfaces/webx-pay.interface';
import { WebXPayService } from '../services/webx-pay.service';
export declare class WebXPayController {
private readonly webxPayService;
private readonly config;
constructor(webxPayService: WebXPayService, config: WebXPayModuleConfig);
/**
* Process payment request
*/
processPayment(paymentDto: PaymentRequestDto, req: Request): Promise<PaymentResponse>;
/**
* Handle webhook notifications
*/
handleWebhook(req: Request, res: Response, contentType?: string): Promise<any>;
}