0.2.0 • Published 11 months ago

@openweb3-io/pay v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Typescript/Javascript library for interacting with the walletpay API and verifying walletpay signatures

GitHub tag NPM version

Join our slack

Usage Documentation

You can find general usage documentation at https://docs.pay.openweb3.io. For complete API documentation with code examples for each endpoint in all of our official client libraries head over to our API documentation site at https://api.pay.openweb3.io.

Language Support

Installation

npm install @openweb3-io/pay 
# or
yarn add @openweb3-io/pay

Usage

import { Walletpay } from "@openweb3-io/pay";

const walletpay = new Walletpay("API-KEY", "RSA PRIVATE KEY");
const order = await walletpay.Order.create({ channel: "ton-connect", chain:"ton", amount: "0.11", currency: "USDT"});

Development

First checkout the core README for details on how to generate our API bindings, then follow the steps below.

Requirements

  • node
  • yarn

Building the library

yarn
yarn build

Contributing

Before opening a PR be sure to format your code!

yarn lint:fix

Running Tests

Simply run:

yarn test