/pnapi

API Wrapper for Paynow.gg

Primary LanguageTypeScriptMIT LicenseMIT

Paynow API (PNAPI)

Paynow.gg Developer API Wrapper.

⚠️ Package is in very early stages of development, it is not recommended for production use.

Installation

# using bun
bun add @ywwa/pnapi

# using npm
npm install @ywwa/pnapi

Simple usage example

import { config } from "dotenv";
import Paynow from "../src";

config();

const main = async () => {
  const client = new Paynow();
  client.config = {
    auth: { type: "apikey", key: process.env.API_KEY },
    store_id: process.env.STORE_ID,
  };

  const store = await client.Management.Stores.get();

  console.log(store);
};

main();