UNPKG

wk-nmi

Version:

This is a simple utility package

11 lines (10 loc) 476 B
import { BadResponse, ErrorDetail } from "../types/erros"; import type { PayWithCustomerVault, PayWithToken, NMIResponse } from "../types/payment"; export declare class Pay { url: string; org: string; apikey: string; constructor(url: string, org: string, apikey: string); withCustomerVault(body: PayWithCustomerVault): Promise<ErrorDetail | BadResponse | NMIResponse>; withToken(body: PayWithToken): Promise<ErrorDetail | BadResponse | NMIResponse>; }