# nivapay-sdk

> - [Package Installation](#package-installation) - [Example Usage](#example-usage) - [Contributing](#contributing) - [License](#license)

Latest version **1.0.11** (published 2024-04-02) · 0 weekly downloads

## Install

```sh
npm install nivapay-sdk
pnpm add nivapay-sdk
yarn add nivapay-sdk
bun add nivapay-sdk
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2024-04-02 |
| First published | 2023-12-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 570.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nivapay |
| Maintainers | nivapaycom |
| Keywords | crypto, cryptocurrency, ramp, fiat |

## Links

- npm: https://www.npmjs.com/package/nivapay-sdk
- Repository: https://github.com/Nu-10-Technologies-Pvt-Ltd/NivapaySdk
- Homepage: https://github.com/Nu-10-Technologies-Pvt-Ltd/NivapaySdk#readme
- Issues: https://github.com/Nu-10-Technologies-Pvt-Ltd/NivapaySdk/issues
- npm.io page: https://npm.io/package/nivapay-sdk

## Dependencies (9)

- [axios](https://npm.io/package/axios.md) ^1.6.2
- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [react-modal](https://npm.io/package/react-modal.md) ^3.16.1
- [@mui/material](https://npm.io/package/@mui/material.md) ^5.15.2
- [webfontloader](https://npm.io/package/webfontloader.md) ^1.6.28
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.11.3
- [@emotion/styled](https://npm.io/package/@emotion/styled.md) ^11.11.0
- [react-loader-spinner](https://npm.io/package/react-loader-spinner.md) ^6.1.6

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2024-04-02
- 1.0.10 — 2024-04-02
- 1.0.9 — 2024-04-02
- 1.0.8 — 2024-04-02
- 1.0.7 — 2024-02-06
- 1.0.6 — 2024-02-05
- 1.0.5 — 2024-01-23
- 1.0.4 — 2024-01-22
- 1.0.3 — 2024-01-18
- 1.0.2 — 2023-12-26
- 1.0.1 — 2023-12-26
- 1.0.0 — 2023-12-22

## README

# NivaPay SDK

## Table of Contents

- [Package Installation](#package-installation)
- [Example Usage](#example-usage)
- [Contributing](#contributing)
- [License](#license)

## Package Installation

Install the NivaPay SDK package using npm:

```bash
$ npm install nivapay-sdk
``````

## Example Usage

### Onramp Swap

```
import NivapaySdk from "nivapay-sdk";

const App = () => {

  const { ramp_swap, nivapay } = NivapaySdk();

  function launchNivapay() {
    
    const options = {
      apiKey: "<your-api-key>", // (Required)
      environment: "<staging/production>", // (Required)
      // .....
      // For the full list of customisation options check the documentation
    };

    ramp_swap(options);
  }

  return (
    <div>
      <button onClick={launchNivapay}>Launch Nivapay SDK</button>
      {nivapay()}
    </div>
  );
};

export default App;
```
### Onramp Deposit

```
import NivapaySdk from "nivapay-sdk";

const App = () => {

  const { ramp_deposit, nivapay } = NivapaySdk();

  function launchNivapay() {
    
    const options = {
      apiKey: "<your-api-key>", // (Required)
      environment: "<staging/production>", // (Required)
      // .....
      // For the full list of customisation options check the documentation
    };

    ramp_deposit(options);
  }

  return (
    <div>
      <button onClick={launchNivapay}>Launch Nivapay SDK</button>
      {nivapay()}
    </div>
  );
};

export default App;
```

### Onramp NFT Checkout

```
import NivapaySdk from "nivapay-sdk";

const App = () => {

  const { ramp_nft, nivapay } = NivapaySdk();

  function launchNivapay() {
    
    const options = {
      apiKey: "<your-api-key>", // (Required)
      environment: "<staging/production>", // (Required)
      // .....
      // For the full list of customisation options check the documentation
    };

    ramp_nft(options);
  }

  return (
    <div>
      <button onClick={launchNivapay}>Launch Nivapay SDK</button>
      {nivapay()}
    </div>
  );
};

export default App;
```

### NFT Checkout Web3

```
import NivapaySdk from "nivapay-sdk";

const App = () => {

  const { ramp_nft_web3, nivapay } = NivapaySdk();

  function launchNivapay() {
    
    const options = {
      apiKey: "<your-api-key>", // (Required)
      environment: "<staging/production>", // (Required)
      // .....
      // For the full list of customisation options check the documentation
    };

    ramp_nft_web3(options);
  }

  return (
    <div>
      <button onClick={launchNivapay}>Launch Nivapay SDK</button>
      {nivapay()}
    </div>
  );
};

export default App;
```



## License

The NivaPay SDK may have its own licensing terms provided by its creators or maintainers. In the absence of specific licensing information, the following license might apply:

## Contributing

If you'd like to contribute to the NivaPay SDK project, please follow the guidelines:

Submit issues for any bugs or feature requests.
Fork the repository, make changes, and submit pull requests.
Adhere to established code conventions and standards.

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