@atharahmed/cryptomus
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Node wrapper for cryptomus

This module is a library for working with the Cryptomus API in a Node.js, written in TypeScript. Please note that this module is under development and is subject to change.

[!WARNING]
This is a beta prerelease

Features

  • Full typing for request and response to ensure secure development.
  • Web docs - click

Install

npm i @qweme32/cryptomus

Example

import { Cryptomus } from "@qweme32/cryptomus";
import { v4 as uuid } from "uuid";

async function main() {
    const cryptomus = new Cryptomus("merchant", "payment-token", "payout-token");

    return cryptomus.createPayment({
        amount: "100",
        order_id: uuid(),
        currency: "USD"
    })
}

main().then(console.log);
Web docs
With < 3 by qweme

Dependents (0)

Package Sidebar

Install

npm i @atharahmed/cryptomus

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

1.09 MB

Total Files

54

Last publish

Collaborators

  • atharahmed