UNPKG

@openweb3-io/wallet-pay

Version:

Wallet Pay API client and wallet pay verification library

92 lines (67 loc) 2.15 kB
<h1 align="center"> <a style="text-decoration: none" href="https://pay.openweb3.io"> <img width="120" src="" /> <p align="center">pay - Wallet Pay as a service</p> </a> </h1> <h2 align="center"> <a href="https://pay.openweb3.io">Website</a> | <a href="https://docs.pay.openweb3.io">Documentation</a> | <a href="https://pay.openweb3.io/slack">Community Slack</a> <h2> Typescript/Javascript library for interacting with the pay API and verifying pay signatures ![GitHub tag](https://img.shields.io/github/tag/pay/walletpay.svg) [![NPM version](https://img.shields.io/npm/v/pay.svg)](https://www.npmjs.com/package/pay) [![Join our slack](https://img.shields.io/badge/Slack-join%20the%20community-blue?logo=slack&style=social)](https://pay.openweb3.io/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.wallet-pay.openweb3.io>. # Language Support <table style="table-layout:fixed; white-space: nowrap;"> <th colspan="2">⚡️ Features ⚡️</th> <tr> <th>Officially Supported</th> <th>✅</th> </tr> <tr> <th>API Support</th> <th>✅</th> </tr> <tr> <th>Signature Verification</th> <th>✅</th> </tr> <tr> <th>Caveats</th> <th>None! 🚀</th> </tr> </table> # Installation ```sh npm install @openweb3-io/wallet-pay # or yarn add @openweb3-io/wallet-pay ``` # Usage ```js 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](../README.md#development) for details on how to generate our API bindings, then follow the steps below. ## Requirements - node - yarn ## Building the library ```sh yarn yarn build ``` ## Contributing Before opening a PR be sure to format your code! ```sh yarn lint:fix ``` ## Running Tests Simply run: ```sh yarn test ```