1.1.1 • Published 3 years ago

@blocklist/legible-cashbill v1.1.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

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 */)
}
1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago