Skip to content

ywwa/paylater

Repository files navigation

PayLater

A modern, lightweight and mostly-typed API client for PayNow.gg.

Installation

# Using pnpm
pnpm add @ywwa/paylater

# Or anything else you prefer, yarn, npm, bun...

Usage

Initialization

import { ManagementAPI } from "@ywwa/paylater";

const client = new ManagementAPI()
client.setToken("YOUR_API_KEY")

Examples

Get customer

const customer = client.customer.getCustomerById({
  params: {
    path: {
      storeId: "12345678",
      customerId: "87654321",
    },
  }
})

API Reference

This client mirrors the official PayNow API documentation - refer to it for the full list of available endpoints, parameters, and expected responses.

Development

git clone https://github.com/ywwa/paylater.git
cd paylater
pnpm install

Update API types:

pnpm run codegen

Testing

not done yet.

Contributing

Any contributions are welcome!

  1. Fork the repo
  2. Create new branch
  3. Commit changes
  4. Push changes
  5. Open a PR

License

MIT License