@togtokh.dev/monpay
Version:
monpay is a library for payment gateway.
81 lines (80 loc) • 2.3 kB
TypeScript
declare const _default: {
CREATE: {
QR: (body: {
branch: string;
displayName: string;
amount: number;
callback: string;
}) => Promise<{
success: boolean;
message: string;
data?: {
qrcode: string;
uuid: string;
};
}>;
DEEP_LINK: (body: {
branch: string;
description: string;
amount: number;
callback: string;
redirectUri: string;
}) => Promise<{
success: boolean;
message: string;
data?: {
id: number;
receiver: string;
amount: number;
miniAppId: number;
createDate: string;
updateDate: string;
status: string;
description: string;
redirectUri: string;
invoiceType: string;
clientServiceUrl: string;
};
}>;
};
CHECKER: {
QR: (uuid: string) => Promise<{
success: boolean;
message: string;
data?: {
uuid: string;
usedAt: number;
usedById: number;
transactionId: string;
amount: number;
createdAt: number;
userPhone: string;
userAccountNo: string;
usedAtUI: string;
createdAtUI: string;
amountUI: string;
};
}>;
DEEP_LINK: (id: string | number) => Promise<{
success: boolean;
message: string;
data?: {
id: number;
receiver: string;
amount: number;
miniAppId: number;
createDate: string;
updateDate: string;
status: string;
description: string;
redirectUri: string;
invoiceType: string;
clientServiceUrl: string;
userId?: number;
txnId?: string;
statusInfo?: string;
};
}>;
};
};
export default _default;