Install the NivaPay SDK package using npm:
$ npm install nivapay-sdk
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;
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;
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;
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;
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:
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.