ari10-sdk
v1.1.8
Published
<p align="center"><b>Ari10 SDK for JavaScript</b></p> <p align="center">Unofficial Ari10 SDK</p>
Readme
Table of Contents
Getting Started
Prerequisites
- Node.js v14 or higher.
Installation
Using your favorite package manager, install ari10-sdk package.
NPM:
npm install --save ari10-sdk
YARN:
yarn add ari10-sdk
Usage
Platform Init
SDK config parameters
To correctly configure the SDK, the init method needs to receive the environment, api key and language:
| Property | Type | Default value | Description |
| :---------- | :--------------------------------------------: | :------------: | :----------------------------------------------------------- |
| environment | 'sandbox' | 'production' \ | 'sandbox' | Enviroment to use. |
| apiKey | 'string' | '' | |
| language | 'en' | 'pl' | 'en' | |
Code snippet:
import ari10Sdk from 'ari10-sdk';
// SDK Init
ari10Sdk.init("production", "xxx-xxxx-xxxx-xxx", "en");Method Call
Start Deposit
| Property | Type | Required | Description |
| :---------- | :--------------------------------------------: | :------------: | :----------------------------------------------------------- |
| depositReferenceId | 'string' | Yes | Enviroment to use. |
| email | 'string' | No | User email address |
| phone | 'string' | No | User phone number |
Code snippet:
ari10Sdk.startDeposit(depositReferenceId, email, phone);License
Copyright © 2023 CG.
