UNPKG

@aajsa/moyasar-client

Version:

A lightweight and type-safe TypeScript client for interacting with Moyasar Payment Gateway APIs.

17 lines (15 loc) 438 B
import { createClient } from "./client.js"; import { schema } from "./schema.js"; //#region src/index.ts /** * Create a client to interact with the Moyasar API. * @param config - Configuration options * @example * const mysr = createMoyasar({ apiKey: "sk_test_"}); * const listInvoices = await moyasar.listInvoices(); */ const createMoyasar = (config) => { return createClient(schema, config); }; //#endregion export { createMoyasar };