npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

coinqvest-merchant-sdk

v0.0.11

Published

Official COINQVEST Merchant API SDK for NodeJS by www.coinqvest.com

Downloads

82

Readme

COINQVEST Payments API SDK (NodeJS)

Official COINQVEST Payments API SDK for NodeJS by www.coinqvest.com

Accepting cryptocurrency payments using the COINQVEST API is fast, secure, and easy. After you've signed up and obtained your API key, all you need to do is create a checkout or blockchain deposit address on Bitcoin, Lightning, Litecoin, Stellar, or other supported networks to get paid. You can also use the API for fiat on- and off-ramping via SWIFT or SEPA.

This SDK implements the REST API documented at https://www.coinqvest.com/en/api-docs

For SDKs in different programming languages, see https://www.coinqvest.com/en/api-docs#sdks

Requirements

  • NodeJS >= 10.14.0
  • axios >= 0.21.1

Installation with npm

npm install coinqvest-merchant-sdk

Usage Client

require('coinqvest-merchant-sdk');

const client = new CoinqvestClient(
    'YOUR-API-KEY',
    'YOUR-API-SECRET'
);

Get your API key and secret here: https://www.coinqvest.com/en/api-settings

Guides

Wallets and Deposits

Your COINQVEST account comes equipped with dedicated deposit addresses for Bitcoin, Lightning, Litecoin, select assets on the Stellar Network, SWIFT, and SEPA, and other supported networks. You can receive blockchain payments within seconds after registering. The GET /wallets and GET /deposit-address endpoints return your blockchain addresses to start receiving custom deposits.

List Wallets and Deposit Addresses (https://www.coinqvest.com/en/api-docs#get-wallets)

let response = await client.get('/wallets');

Checkouts

COINQVEST checkouts provide fast and convenient ways for your customers to complete payment. We built a great user experience with hosted checkouts that can be fully branded. If you're not into payment pages, you can take full control over the entire checkout process using our backend checkout APIs. Click here to learn more about building checkouts.

Create a Hosted Checkout (Payment Link) (https://www.coinqvest.com/en/api-docs#post-checkout-hosted)

let response = await client.post('/checkout/hosted', {
    charge:{
        billingCurrency: 'EUR', // specifies the billing currency
        lineItems: [{ // a list of line items included in this charge
            description: 'PCI Graphics Card',
            netAmount: 169.99,
            quantity: 1
        }],
        shippingCostItems: [], // an optional list of shipping and handling costs
        taxItems: []
    },
    settlementAsset: 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN' // your settlement asset as given by GET /assets (or ORIGIN to omit conversion)
});

Swaps And Transfers

Once funds arrive in your account, either via completed checkouts or custom deposits, you have instant access to them and the ability to swap them into other assets or transfer them to your bank account or other blockchain accounts (we recommend to always forward funds into self-custody on cold storage). The POST /swap and POST /transfer endpoints will get you started on swaps and transfers.

Swap Bitcoin to USDC (https://www.coinqvest.com/en/api-docs#post-swap)

let response = await client.post('/swap', {
    sourceAsset: 'BTC:GCQVEST7KIWV3KOSNDDUJKEPZLBFWKM7DUS4TCLW2VNVPCBGTDRVTEIT',
    targetAsset: 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
    targetAmount: 100
});

Transfer USDC to your SEPA Bank (https://www.coinqvest.com/en/api-docs#post-transfer)

let response = await client.post('/transfer', {
    network: 'SEPA',
    asset: 'USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
    amount: 100,
    targetAccount: 'A unique SEPA account label as previously specified in POST /target-account'
});

Supported Assets, Currencies, and Networks

List all available Networks (https://www.coinqvest.com/en/api-docs#get-networks)

let response = await client.get('/networks');

List all available Assets (https://www.coinqvest.com/en/api-docs#get-assets)

let response = await client.get('/assets');

List all available Billing Currencies (https://www.coinqvest.com/en/api-docs#get-currencies)

let response = await client.get('/currencies');

Financial Reports and Accounting

We don't leave you hanging with an obscure and complicated blockchain payment trail to figure out by yourself. All transactions on COINQVEST are aggregated into the Financial Reports section of your account and can even be associated with counter-parties, such as customers and beneficiaries. We provide CSV reports, charts, and beautiful analytics for all your in-house accounting needs.

Please inspect https://www.coinqvest.com/en/api-docs for detailed API documentation or send us an email to [email protected].

Support and Feedback

Your feedback is appreciated! If you have specific problems or bugs with this SDK, please file an issue on Github. For general feedback and support requests, send an email to [email protected].

Contributing

  1. Fork it ( https://github.com/COINQVEST/nodejs-merchant-sdk/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request