UNPKG

@doctech/fib

Version:

First Iraqi Bank payment integration for DocTech

14 lines (13 loc) 491 B
import { FIBConfig, CreatePaymentOptions, PaymentResponse, PaymentStatus } from "./types"; export declare class FIBClient { private client; private config; private token; private tokenExpiry; constructor(config: FIBConfig); private ensureToken; private authenticate; createPayment(options: CreatePaymentOptions): Promise<PaymentResponse>; getPaymentStatus(paymentId: string): Promise<PaymentStatus>; cancelPayment(paymentId: string): Promise<void>; }