UNPKG

kite-publisher

Version:

The Kite Publisher Javascript plugin lets you add one-click trade buttons to your webpage. It works like a basket combined with a payment gateway, where an inline popup opens on your webpage, guides the user through a trade, and lands the user back on you

13 lines (12 loc) 431 B
import { BasketItem, KiteConnect } from "./kitePublisher"; export declare class KitePublisher { private apiKey; private redirectUrl?; private kite; constructor(apiKey: string, redirectUrl?: string | undefined); initialize(): Promise<KiteConnect>; addStockToBasket(stockDetails: BasketItem): void; renderButton(selector: string): void; } export default KitePublisher; export { BasketItem, KiteConnect };