Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blockbee/checkout

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockbee/checkout

BlockBee's Checkout Library for NodeJS

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
2
Weekly downloads
 
Created
Source

BlockBee's Checkout NodeJS Library

NodeJS's implementation of BlockBee's Checkout payment gateway

Install

npm install @blockbee/checkout

Usage

Importing in your project file

var BlockBee = require('@blockbee/checkout')

Requesting Payment

const bb = new BlockBee(apiKey, params, blockbeeParams)

const address = await bb.paymentRequest(redirectUrl, value)

Where:

  • api_key is the API Key provided by our Dashboard.
  • params is any parameter you wish to send to identify the payment, such as {order_id: 1234}.
  • bb_params parameters that will be passed to BlockBee _(check which extra parameters are available here: https://docs.blockbee.io/#operation/create).
  • redirect_url URL in your platform, where the user will be redirected to following the payment. Should be able to process the payment using the success_token.
  • value amount in currency set in Payment Settings you want to receive from the user.

Getting notified when the user completes the Payment

When receiving payments, you have the option to receive them in either the notify_url or the redirect_url, but adding the redirect_url is required (refer to our documentation at https://docs.blockbee.io/#operation/paymentipn).

Requesting Deposit

const bb = new BlockBee(apiKey, params, blockbeeParams)

const address = await bb.depositRequest(notifyUrl)

Help

Need help?
Contact us @ https://blockbee.io/contacts/

Changelog

1.0.0
  • Initial Release

Keywords

FAQs

Package last updated on 02 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc