# appconnect

> Appconnect JS npm package

Latest version **0.0.13** (published 2020-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install appconnect
pnpm add appconnect
yarn add appconnect
bun add appconnect
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.13 |
| Published | 2020-05-03 |
| First published | 2020-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | uncooloj |
| Maintainers | uncooloj |
| Keywords | boilerplate, npm, module, node, javascript |

## Links

- npm: https://www.npmjs.com/package/appconnect
- Repository: https://github.com/AppConnectNG/js-npm-package
- Homepage: https://github.com/AppConnectNG/js-npm-package#readme
- Issues: https://github.com/AppConnectNG/js-npm-package/issues
- npm.io page: https://npm.io/package/appconnect

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.19.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.13 (latest) — 2020-05-03
- 0.0.12 — 2020-04-19
- 0.0.11 — 2020-04-16
- 0.0.10 — 2020-04-07
- 0.0.9 — 2020-04-07
- 0.0.8 — 2020-03-16
- 0.0.7 — 2020-03-16
- 0.0.6 — 2020-03-15
- 0.0.5 — 2020-03-10
- 0.0.3 — 2020-02-17
- 0.0.2 — 2020-02-17
- 0.0.1 — 2020-02-16

## README

# appconnect
AppConnect JS NPM Package

### Installation

```
npm install appconnect
```

### Usage

```js
// Require the library
const appconnect = require('appconnect');
//use your AppConnect Public key
appconnect.config(APPCONNECT_PUBLIC_KEY); 
```
 
```js
//Sample Request
try {
    const user = await appconnect.debitUser({
      user: 'USR_DAJBW09456621576050242252', //AppConnect User ID
      amount: 20000,  //Amount in Kobo
      remark: 'Top Up Wallet', //Transaction Remark
      reference: '' + Math.floor((Math.random() * 1000000000) + 1) + Date.now(), //Unique Reference
    });
}
catch (err) {
    console.log(err);
}
```

```js
//Sample Request
try {
    const user = await appconnect.initializeDirectDebit({
      user: 'USR_DAJBW09456621576050242252', //AppConnect User ID
      reason: 'Subscription for Book Service',  //Reason for Direct Debit
      otp: '',  //if otp is required
    });
}
catch (err) {
    console.log(err);
}
```
  
### Resources

- services
  - getBanks

- wallet
  - debitUser
  - initializeDirectDebit

### Contributing
- To ensure consistent code style we will be putting a contribution guideline below

### Tests

To run tests

```
npm test
```

### Todo

- Proper resource examples
- ES6 support

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