Catalog npm
PACKAGE EXPLORERView in registry

@0xpay/sdk

npm

SDK for 0xPay API

Versions collected12
Direct dependencies9From release 0.0.13
Last observed21 Oct, 09:28 UTC

README

Current package documentation

@0xpay/sdk

Node.js 0xPay integration package

npm

Overview

SDK for 0xPay Merchant API which allows merchants to accept and manage payments on various blockchain networks and fiat assets via integration options.

Getting started

Prerequisites

To start using 0xPay SDK you need to register your personal account and then create merchant at 0xPay to obtain your merchant id and private key and provide it to SDK.

Installation

// NPM
npm install @0xpay/sdk
// Yarn
yarn add @0xpay/sdk

Create instance

import { XPay } from '@0xpay/sdk'

const MERCHANT_ID = 'your-merchant-id'
const MERCHANT_PRIVATE_KEY = 'your-merchant-private-key'

// Create XPay instance
const xpay = new XPay(MERCHANT_ID, MERCHANT_PRIVATE_KEY)

Get available crypto assets

import { XPay } from '@0xpay/sdk'
import express from 'express'

// Create XPay instance
const xpay = new XPay(...)

express().post('/ipn', express.raw(), (req, res) => {
  const validationError = xpay.validateWebhookRequest({ ...req, ...req.headers })
  if (validationError) throw new Error(validationError.description)

  // processing your ipn...

  res.send('OK')
})

Extended Docs

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 12

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.13Registry latest14 Jan 20259
0.0.1219 Jun 20239
0.0.1119 Jun 20239
0.0.1022 Feb 20239
0.0.826 Dec 20227
0.0.726 Dec 20227
0.0.626 Dec 20227
0.0.521 Dec 20227
0.0.419 Dec 20227
0.0.319 Dec 20227
0.0.225 Nov 20227
0.0.125 Nov 20226

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
poloplayingsolo/0xpay-js-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:043f4d2ce0368f3af6bb6d78d8059fb1aefbd59c869ca100c70f2bd95deaed8f