@openweb3-io/wallet-pay
Version:
Wallet Pay API client and wallet pay verification library
92 lines (67 loc) • 2.15 kB
Markdown
<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

[](https://www.npmjs.com/package/pay)
[](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
```