zips-typescript-sdk
Version:
TypeScript SDK for ZIPS Payment Gateway - Complete payment solution for server-side applications
51 lines • 1.09 kB
TypeScript
export type PaymentParams = {
amount: number;
quantity: number;
name: string;
currency: string;
firstName: string;
phoneNumber: string;
lastName: string;
description?: string;
country?: string;
middleName?: string;
merchantAccountId: string;
projectId: string;
};
export interface Payment {
data: string;
success: boolean;
referenceNumber: string;
message: string;
}
export type Order = {
id: string;
projectId: string;
orderId: string;
amount: string;
status: string;
country: string;
reference: string;
fees: number;
createdAt: string;
updatedAt: string;
projectTransaction?: string;
isSettled?: boolean;
merchantId?: string;
bankName?: string;
};
export interface Customer extends CustomerParams {
}
export type CustomerParams = {};
export interface Transaction {
status: string;
success: boolean;
message: string;
data: Order;
url: string;
}
export type AllOption = {
limit?: number;
page?: number;
};
//# sourceMappingURL=index.d.ts.map