netopia-client
Version:
A fully-typed, TypeScript-based client for the Netopia payments API V2.
23 lines (22 loc) • 688 B
TypeScript
import { Payment, Browser, Order, Product } from "./schemas";
export declare class Netopia {
private client;
private apiKey;
private notifyUrl;
private redirectUrl;
private sandbox;
private paymentData?;
private browserInfo?;
private orderData?;
constructor({ apiKey, notifyUrl, redirectUrl, sandbox, }?: {
apiKey?: string;
notifyUrl?: string;
redirectUrl?: string;
sandbox?: boolean;
});
setPaymentData(data: Payment.Data): this;
setBrowserInfo(data: Browser.Data): this;
setOrderData(data: Order.Data): this;
startPayment(): Promise<unknown>;
setProductsData(products: Product.Data[]): this;
}