nivapay-sdk

1.0.11 • Public • Published

NivaPay SDK

Table of Contents

Package Installation

Install the NivaPay SDK package using npm:

$ 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.

Package Sidebar

Install

npm i nivapay-sdk

Weekly Downloads

35

Version

1.0.11

License

none

Unpacked Size

584 kB

Total Files

6

Last publish

Collaborators

  • nivapaycom