This commit is contained in:
mahyargdz
2025-09-14 15:15:03 +03:30
commit be82059172
534 changed files with 51310 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import { GatewayProvider } from "../../../common/enums/payment.enum";
export interface IPaymentGateway {
/**
*
* @param gatewayType
* @param data
*/
requestPayment(gatewayType: GatewayProvider, data: NewPaymentData): Promise<any>;
/**
*
* @param gatewayType
* @param data
*/
verifyPayment(gatewayType: GatewayProvider, data: VerifyPaymentData): Promise<any>;
/**
*
* @param gatewayType
* @param authority
*/
retryPayment(gatewayType: GatewayProvider, authority: string): Promise<any>;
}
export interface NewPaymentData {
amount: number;
description: string;
email: string;
mobile: string;
callbackPath: string;
}
export interface VerifyPaymentData {
authority: string;
amount: number;
}