Skip to content

ignaigna/cryptomus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git+https://github.com/ignaigna/cryptomus

Example

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

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

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

main().then(console.log);
Web docs
With ️❤ by qweme (and forked by igna)

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.0%
  • JavaScript 38.0%