# @mia-burton/scalapay-js

> A Node.js module for Scalapay

Latest version **0.3.3** (published 2022-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mia-burton/scalapay-js
pnpm add @mia-burton/scalapay-js
yarn add @mia-burton/scalapay-js
bun add @mia-burton/scalapay-js
```

## 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.3.3 |
| Published | 2022-09-27 |
| First published | 2020-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 53.4 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mia Burton |
| Maintainers | rtmb, antoniocapizzi-miaburton, paologf, gdg-mb |
| Keywords | scalapay |

## Links

- npm: https://www.npmjs.com/package/@mia-burton/scalapay-js
- Repository: https://github.com/mia-burton/scalapay-node
- Homepage: https://github.com/mia-burton/scalapay-node#readme
- Issues: https://github.com/mia-burton/scalapay-node/issues
- npm.io page: https://npm.io/package/@mia-burton/scalapay-js

## Dependencies (1)

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

## Recent versions

- 0.3.3 (latest) — 2022-09-27
- 0.3.2 — 2021-02-15
- 0.3.1 — 2020-07-10
- 0.3.0 — 2020-07-10
- 0.2.3 — 2020-07-09
- 0.2.2 — 2020-07-09
- 0.2.1 — 2020-07-06

## README

# scalapay-js
A Node.js module for scalapay api
## Installation
```sh
npm install @mia-burton/scalapay-js --save
yarn add @mia-burton/scalapay-js
```

## Usage
### Javascript
```javascript
var scalaClient = require('@mia-burton/scalapay-js')
var client = new scalaClient(API_KEY)

//Create order
client.createOrder(orderDetail, 'your-confirmation-url', 'your-cancel-url')

//Capture payment
client.capture(token)

//Refund
client.refund(token ,refund)
```

### TypeScript
```typescript
import { ScalaClient } from '@mia-burton/scalapay-js'

const client = new ScalaClient(API_KEY)

//Create order
client.createOrder(orderDetail, 'your-confirmation-url', 'your-cancel-url')

//Capture payment
client.capture(token)

//Refund
client.refund(token ,refund)
```
## Enable sandbox env
On inizialization set `sandbox` parameter to true

## Test
```sh
npm run test
```

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