0.2.7 • Published 6 months ago
@openweb3-io/wallet-pay v0.2.7
Typescript/Javascript library for interacting with the pay API and verifying pay signatures
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.wallet-pay.openweb3.io.
Language Support
Installation
npm install @openweb3-io/wallet-pay
# or
yarn add @openweb3-io/wallet-payUsage
import { ApiClient } from "@openweb3-io/wallet-pay";
const apiClient = new ApiClient("API-KEY", "SECRET");
const order = await apiClient.orders.create({ currency: "ton", amount: "1000000000" });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 buildContributing
Before opening a PR be sure to format your code!
yarn lint:fixRunning Tests
Simply run:
yarn test