# dark-payment

> Provide payment client

Latest version **0.1.12** (published 2026-10-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install dark-payment
pnpm add dark-payment
yarn add dark-payment
bun add dark-payment
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2026-10-02 |
| First published | 2018-06-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 48.9 KB |
| Known vulnerabilities | 0 (+25 in 2 direct dependencies) |
| Install scripts | no |
| Author | DarkPOS Dev Team |
| Maintainers | darkpos-dev |

## Links

- npm: https://www.npmjs.com/package/dark-payment
- npm.io page: https://npm.io/package/dark-payment

## Dependencies (8)

- [md5](https://npm.io/package/md5.md) ^2.2.1
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.19
- [scriptjs](https://npm.io/package/scriptjs.md) ^2.5.8
- [hmac_sha1](https://npm.io/package/hmac_sha1.md) ^0.1.0
- [xmlbuilder](https://npm.io/package/xmlbuilder.md) ^11.0.0
- [asmcrypto.js](https://npm.io/package/asmcrypto.js.md) ^2.0.1

## Recent versions

- 0.1.12 (latest) — 2026-10-02
- 0.1.4-beta.0 (beta) — 2019-03-06
- 0.1.10 — 2024-09-11
- 0.1.9 — 2024-08-23
- 0.1.8 — 2022-11-11
- 0.1.7 — 2022-11-11
- 0.1.6 — 2022-11-11
- 0.1.5 — 2021-09-30
- 0.1.4-beta.2 — 2019-04-30
- 0.1.4-beta.1 — 2019-04-30
- 0.1.3 — 2018-06-18
- 0.1.1 — 2018-06-18
- 0.1.0 — 2018-06-15

## README

# Dark-Payment.


## Start service

```
$ npm i dark-payment
```

## 1. Create an instance of payment client  
```
  import PaymentClient from 'dark-payment';
  const paymentClient = new PaymentClient();

  paymentClient.init(<Provider Config>)
    .then((data) => {
      console.log(data);
    }).catch(err => console.log(err));

```
## 2. Call createSingleUseToken or createCustomerToken 
```
  paymentClient.createSingleUseToken(<source>).then(data => console.log(data)).catch(err => console.log(err));
  
	paymentClient.createCustomerToken(
    <customerToken>,
    <source>
  ).then(data => console.log(data)).catch(err => console.log(err));

```

---
_Source: https://npm.io/package/dark-payment · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
