https://github.com/sellgate/node-sdk
NodeJS SDK for the Sellgate API. Start accepting crypto payments in minutes.
https://github.com/sellgate/node-sdk
api api-rest bitcoin blockchain crypto-tools cryptocurrency ethereum payments
Last synced: 7 months ago
JSON representation
NodeJS SDK for the Sellgate API. Start accepting crypto payments in minutes.
- Host: GitHub
- URL: https://github.com/sellgate/node-sdk
- Owner: Sellgate
- License: mit
- Created: 2024-08-01T12:50:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-05T18:39:28.000Z (about 1 year ago)
- Last Synced: 2025-01-23T19:36:16.880Z (9 months ago)
- Topics: api, api-rest, bitcoin, blockchain, crypto-tools, cryptocurrency, ethereum, payments
- Language: TypeScript
- Homepage: https://sellgate.io
- Size: 109 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sellgate Node SDK
This is the Sellgate Node SDK. It is a simple SDK to use the Sellgate API.
Sellgate provides an API service that allows sellers and developers to easily integrate crypto payments into their applications or payment flows. Using our service has several benefits:
- Low transaction fees, just 1%.
- No authentication required for any usage: No API keys, no accounts.
- Examples for quick implementation on our docs.
- Support for bug fixes, extra features and integration assistance.For further documentation, please refer to the [Sellgate docs](https://sellgate.io/docs)
## Installation
```bash
npm install sellgate
```## Usage
```js
import { sellgate } from 'sellgate';const checkout = sellgate.createCheckout({
title: 'Premium Subscription',
description: '1-year access to all premium features',
currency: 'USD',
price: '99.99',
crypto: [
{
network: 'ETH',
coin: 'ETH',
address: '0xB1DA646D1cD015d205a99198e809724D5C78109d',
},
],
webhook: 'https://example.com/webhook',
return: 'https://example.com/thank-you',
})console.log(checkout.url);
const address = sellgate.createAddress({
crypto: {
network: 'ETH',
coin: 'ETH',
address: '0xB1DA646D1cD015d205a99198e809724D5C78109d',
},
webhook: 'https://example.com/webhook',
})console.log(address.receive_address)
```