# CEDIPLUS API Nodejs SDK v1.0.0

For more information about CEDIPUS, visit the [website](https://www.cediplus.com)

## Super simple to use

### Charge Mobile Money Wallet

```javascript
const cediplus = require('cediplus-api');
const data = {
  "action": "sendbill",
  "api_key": "your_api_key",
  "description": "transaction_description",
  "wallet": "0574017xxx",
  "wallet_type": "t or m",
  "amount": "1.00",
  "callback_url": "https://yourwebsite.com/callback" // optional, leave empty if not used
}

cediplus(data).then(response => {
  console.log(response);
}).catch(error => {
  console.error(`Error - ${error}`);

})
```

### Check Status of transaction

```javascript
const cediplus = require('cediplus-api');
const data = {
  "action": "checkbill",
  "api_key": "your_api_key",
  "invoice": "invoice_number_from_the_charge_wallet_request"
}

cediplus(data).then(response => {
  console.log(response);
}).catch(error => {
  console.error(`Error - ${error}`);

})
```