A modern, lightweight and mostly-typed API client for PayNow.gg.
# Using pnpm
pnpm add @ywwa/paylater
# Or anything else you prefer, yarn, npm, bun...
import { ManagementAPI } from "@ywwa/paylater";
const client = new ManagementAPI()
client.setToken("YOUR_API_KEY")
const customer = client.customer.getCustomerById({
params: {
path: {
storeId: "12345678",
customerId: "87654321",
},
}
})
This client mirrors the official PayNow API documentation - refer to it for the full list of available endpoints, parameters, and expected responses.
git clone https://github.com/ywwa/paylater.git
cd paylater
pnpm install
Update API types:
pnpm run codegen
not done yet.
Any contributions are welcome!
- Fork the repo
- Create new branch
- Commit changes
- Push changes
- Open a PR
MIT License