Socket
Socket
Sign inDemoInstall

@blocklist/legible-cashbill

Package Overview
Dependencies
17
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blocklist/legible-cashbill

Unofficial Node.js wrapper for CashBill REST API


Version published
Weekly downloads
5
increased by25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Legible Cashbill

Unofficial Node.js wrapper for CashBill REST API written in TypeScript.

Installing:

yarn add @blocklist/legible-cashbill
# or
npm i @blocklist/legible-cashbill -S

Sample usage:

import { LegibleCashbill } from '@blocklist/legible-cashbill'

async function start() {
  // Initialize API Wrapper instance with test API url:
  const cashbill = new LegibleCashbill({
    // By default `apiUrl` is set to production api url. (https://pay.cashbill.pl/ws/rest)
    apiUrl: 'https://pay.cashbill.pl/testws/rest'
    secret: 'your-secret',
    shopId: 'your-shop-id',
  })

  // Create payment
  const { id } = cashbill.payments.create({ /* your data */})

  // Retrieve payment info
  const info = cashbill.payments.retrieve(id);

  // Get notification
  const notification = cashbill.notifications.get(/* request data */)
}

FAQs

Last updated on 22 Sep 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc