first
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user