🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@dazaar/payment

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazaar/payment

Dazaar payment manager

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

@dazaar/payment

Dazaar payment manager.

npm install dazaar-payment

Supports EOS and free payments.

Usage

const Payment = require('@dazaar/payment')

const pay = new Payment(seller, [{
  // dazaar card payment entry
  currency: 'EOS',
  ...
}])

API

pay.validate(remoteKey, done)

Validate if a remote key can access a sellers stream. Returns an info object describing the state of the subscription.

pay.destroy()

Destroy the payment provider.

pay.metadata(buyerKey)

Returns a metadata string you should attach as the memo/userdata when doing a payment yourself.

pay.providers

An array of payment providers, each corresponding to the payment entry passed in the constructor. If the payment was not support it might contain null.

provider.buy(buyerKey, amount, authentication, cb)

Convenience method to buy access to a stream using the provider.

License

MIT

FAQs

Package last updated on 24 Aug 2020

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