@axonlabs/payments - v0.2.0
    Preparing search index...

    @axonlabs/payments - v0.2.0

    AxonJs Logo

    @axonlabs/payments

    ๐Ÿ’ณ Modular, type-safe payment gateway clients for Node.js โ€” with first-class TypeScript, ESM exports, and real-world API support.


    @axonlabs/payments is a unified payment client library for Node.js applications โ€” built with TypeScript, ESM, and modern developer ergonomics in mind.

    Whether you're integrating Plisio, Zarinpal (more payment clients will coming soon) this package gives you:

    • ๐Ÿงฉ Gateway-specific clients with type-safe methods
    • ๐Ÿ”Œ Easy plug-and-play usage
    • ๐Ÿ”„ Common interfaces for consistency
    • โšก๏ธ Fully tree-shakable via ESM exports
    • ๐Ÿ“ฆ Single package, clean structure

    Project Changelog


    Gateway Import Path Status
    Plisio @axonlabs/payments/plisio ๐Ÿงช In progress
    Zarinpal @axonlabs/payments/zarinpal ๐Ÿšง In Future

    Want to contribute a gateway? PRs are welcome!


    // Plisio
    import { PlisioClient } from '@axonlabs/payments/plisio';

    const plisio = new PlisioClient(secret_key, "whitelabel");

    // Central hub
    import { Payments, AxonPayments } from '@axonlabs/payments';

    const plisio1 = Payments.getPlisio(secret_key, "whitelabel");
    const plisio2 = new AxonPayments().getPlisio(secret_key, "whitelabel");

    Each gateway is designed to be self-contained and follow a consistent interface.


    • โœ… ESM-first โ€” optimized for modern tooling
    • โš™๏ธ Shared interfaces, custom configs, and low-level control
    • ๐Ÿงช Testable clients for real-world server environments
    • ๐ŸŒ Multi-gateway ready in a single unified package

    // Plisio
    import { PlisioClient } from '@axonlabs/payments/plisio';
    // Central hub
    import { Payments, AxonPayments } from '@axonlabs/payments';

    MIT ยฉ AxonJsLabs


    We โค๏ธ open-source! Feel free to open issues, suggest improvements, or add new gateway clients.

    npm install
    npm run build
    npm run test

    Want to add your own gateway (e.g. NowPayments, IDPay, PayPal)? Check the lib/ folder and follow the structure.

    Built with ๐Ÿ’œ by the AxonJsLabs community