UNPKG

@togtokh.dev/tokipay

Version:

tokipay is a library for qpay payment gateway. It is a wrapper for axios and https module. It is a simple and easy-to-use library for tokipay payment gateway. It is a wrapper for axios and https module. It is a simple and easy-to-use library for tokipay p

96 lines (95 loc) 2.78 kB
declare const _default: { token: { third_party_token: string; spose_token: string; }; merchant_id: string; hosts: { staging: string; prod: string; }; host: string; auth: { TOKEN: (host: "prod" | "staging", body: { username: string; password: string; third_party_token?: string; spose_token?: string; merchant_id?: string; }) => Promise<{ success: boolean; message: string; }>; }; invoice: { CREATE: { QR: (body: { callback: string; successUrl?: string; failureUrl?: string; orderId: string; merchantId?: string; amount: number; notes: string; }) => Promise<{ success: boolean; message: string; data?: { qr: string; }; }>; DEEP_LINK: (body: { callback: string; successUrl?: string; failureUrl?: string; orderId: string; merchantId?: string; amount: number; notes: string; appSchemaIos?: string; tokiWebSuccessUrl?: string; tokiWebFailureUrl?: string; }) => Promise<{ success: boolean; message: string; data?: { deeplink: string; }; }>; SEND_INVOCIE: (body: { callback: string; successUrl?: string; failureUrl?: string; orderId: string; merchantId?: string; amount: number; notes: string; phoneNo: number; countryCode?: string; tokiWebSuccessUrl?: string; tokiWebFailureUrl?: string; }) => Promise<{ success: boolean; message: string; data?: { deeplink: string; requestId: string; }; }>; }; CHECK: { TRANS_REQUEST_ID: (transRequestId: string, token: string) => Promise<{ success: boolean; message: string; data?: null; }>; REQUEST_ID: (requestId: string) => Promise<{ success: boolean; message: string; data?: any; }>; }; }; }; export default _default; export { default as invoice } from "./invoice";