# ualabis-nodejs

> Ualá Bis SDK Node.js

Latest version **1.0.1** (published 2023-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install ualabis-nodejs
pnpm add ualabis-nodejs
yarn add ualabis-nodejs
bun add ualabis-nodejs
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-04-19 |
| First published | 2022-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 42.1 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ualá Bis |
| Maintainers | npm_uala |
| Keywords | uala, uala bis, ualá, ualá bis, api, api checkout, tarjeta de crédito, tarjeta de débito, pasarela de pago, sdk |

## Links

- npm: https://www.npmjs.com/package/ualabis-nodejs
- Repository: https://github.com/Uala-Developers/ualabis-nodejs
- Issues: https://github.com/Uala-Developers/ualabis-nodejs/issues
- npm.io page: https://npm.io/package/ualabis-nodejs

## Dependencies (1)

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

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-04-19
- 1.0.0 — 2022-11-24

## README

# Ualá API Checkout JavaScript SDK

Official Javascript SDK for Ualá Bis API Checkout

SDK Javascript oficial de Ualá Bis API Checkout

<img align="right" src="https://nodejs.org/static/images/logo.svg" width="250"/>


## Content
  - [Installation](#installation) | [Instalación](#instalación)
  - [Functions](#functions) | [Funciones](#funciones)
  - [Usage](#usage) | [Uso](#uso)
  - [API Checkout Docs](#api-checkout-docs)

## Installation
Install the package with:
```sh
npm i ualabis-nodejs
```

## Functions
List of all functions:
  - setUp
  - createOrder
  - getOrder
  - getFailedNotifications
  - getOrders

## Usage
The package needs to be configured with your account's secret key

```js
/**
 * if you use ES Modules instead of CommonJS use import statement
 * import UalaApiCheckout from 'ualabis-nodejs';
*/

const UalaApiCheckout = require('ualabis-nodejs');

await UalaApiCheckout.setUp({
  userName: 'example_user',
  clientId: 'example_client_id',
  clientSecret: 'example_client_secret',
  isDev: true,
});

const order = await UalaApiCheckout.createOrder({
  amount: 10.2,
  description: 'test',
  callbackSuccess: 'https://www.google.com/search?q=failed',
  callbackFail: 'https://www.google.com/search?q=success',
});

const generatedOrder = await UalaApiCheckout.getOrder(order.uuid);

const orders = await UalaApiCheckout.getOrders({limit:'2', fromDate:'2022-08-04', toDate:'2022-08-09'});

```


# Español

## Instalación
Instale el paquete con el siguiente comando:
```sh
npm i ualabis-nodejs
```

## Funciones
Listado de todas las funciones:
  - setUp
  - createOrder
  - getOrder
  - getFailedNotifications
  - getOrders

## Uso
Para hacer uso del SDK es necesario que configure sus credenciales como se muestra a continuación:

```js
/**
 * Si su código usa ES Modules y no CommonJS, importa el
 * paquete de la siguiente manera:
 * import UalaApiCheckout from 'ualabis-nodejs';
*/

const UalaApiCheckout = require('ualabis-nodejs');

await UalaApiCheckout.setUp({
  userName: 'example_user',
  clientId: 'example_client_id',
  clientSecret: 'example_client_secret',
  isDev: true,
});

const order = await UalaApiCheckout.createOrder({
  amount: 10.2,
  description: 'test',
  callbackSuccess: 'https://www.google.com/search?q=failed',
  callbackFail: 'https://www.google.com/search?q=success',
});

const generatedOrder = await UalaApiCheckout.getOrder(order.uuid);

const orders = await UalaApiCheckout.getOrders({limit:'2', fromDate:'2022-08-04', toDate:'2022-08-09'});

```

## API Checkout Docs
Also you can show Api Checkout Documentation in https://developers.ualabis.com.ar

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