@adsesugh/monnify-sdk
Version:
The Monnify Web SDK is now available as a Node.js package, offering an easy and efficient way to integrate payment gateway solutions into your web applications
53 lines (52 loc) • 1.24 kB
TypeScript
export interface MonnifyConfig {
publicKey: string;
contractCode: string;
mode?: 'TEST' | 'LIVE';
}
interface SplittedProps {
subAccountCode: string;
feePercentage: number;
splitAmount: number;
feeBearer: boolean;
}
export interface PaymentDetails {
amount: number;
currency: string;
reference: string;
customerName: string;
customerEmail: string;
customerMobileNumber?: string;
paymentDescription: string;
redirectUrl: string;
incomeSplitConfig?: SplittedProps[];
}
export interface MonnifyResponse {
status: string;
amount: number;
amountPaid: number;
completed: boolean;
completedOn: string;
createdOn: string;
paidOn: string;
currencyCode: string;
customerEmail: string;
customerName: string;
fee: number;
metaData: {
deviceType: string;
ipAddress: string;
};
payableAmount: number;
paymentMethod: string;
paymentReference: string;
paymentStatus: string;
transactionReference: string;
}
export interface MonnifyCancelResponse {
authorizedAmount: number;
paymentStatus: string;
redirectUrl: string | null;
responseCode: string;
responseMessage: string;
}
export {};