1.0.11 • Published 1 month ago

nivapay-sdk v1.0.11

Weekly downloads
-
License
-
Repository
github
Last release
1 month ago

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.

1.0.9

1 month ago

1.0.8

1 month ago

1.0.11

1 month ago

1.0.10

1 month ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago