# create-comission

> `import Commission from 'create-comission';`

Latest version **1.1.1** (published 2020-10-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-comission
pnpm add create-comission
yarn add create-comission
bun add create-comission
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-10-28 |
| First published | 2020-10-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rinku12 |

## Links

- npm: https://www.npmjs.com/package/create-comission
- npm.io page: https://npm.io/package/create-comission

## Dependencies (1)

- [stripe](https://npm.io/package/stripe.md) ^8.107.0

## Recent versions

- 1.1.1 (latest) — 2020-10-28
- 1.1.0 — 2020-10-27
- 1.0.3 — 2020-10-27
- 1.0.2 — 2020-10-27
- 1.0.1 — 2020-10-27
- 1.0.0 — 2020-10-27

## README

# Usage
`import Commission from 'create-comission';`

`const commission = new Commission(token, amount, comission, customer_id, partner_account_id, card_id)`

`const charge = await comission.createCharge()`

### Parameters
token: stripe token
amount: total amount to be charge in USD
customer_id: Stripe Customer ID
partner_account_id: Stripe ID for partner in which the amount cancelled by comission amount is transferred
card_id: Stripe ID for Card from which the amount is deducted.

#### Note:
Default Currency is USD, but you can change it using following method
`commission.changeCurrency(currency)`
For list of supported currency refer this https://stripe.com/docs/currencies

#### Peer Dependency
stripe

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