An Inline Javascript Plugin for Quick Website Integration With Nevance
How to use
- Include the inline JavaScript plugin script in your HTML markup:
<script src="https://dev.nevance.com/js/inline/v1/inline.js"></script>
<button onclick="loadNevance()">Pay Now</button>
- Set up your payment payload and configure your event handlers
var loadNevance = function () {
QuickSetup({
public_key: 'your nevance public key', //your Nevance Public Key
reference: '' + Math.floor((Math.random() * 1000000000) + 1), // generates a pseudo-unique reference. Please replace with your custom reference if any.
//product_id: 'artemis4l', //optional
customer_email: '[email protected]',
amount: 4000,
currency: 'NGN',
bearer: 'merchant', //bearer of fees: 'merchant' or 'customer'. defaults to merchant if null
redirect_url: 'https://www.example.com',
preferred: 'your preferred', //paystack or flutterwave or interswitch
callback: function (response) {
//do something
alert(JSON.stringify(response))
},
onClose: function () {
//alert("aborted")
}
});
}
{
"status": true,
"message": "success",
"data": {
"status": "Success",
"id": "E1C3A8255C47",
"reference": "865396985",
"amount": 1800,
"chargedAmount": 1800,
"fee": 0,
"description": "test payment",
"currency": "NGN",
"source": "Card",
"defaultChannel": "Flutterwave",
"usedChannel": "Paystack",
"switched": true,
"ipAddress": "102.89.255.255",
"customerName": "Jane Doe",
"customerEmail": "[email protected]",
"customerPhone": "08012345678",
"feeBearer": "Customer",
"productId": null,
"createdAt": "2021-08-10T18:48:23.9383244",
"completedAt": "2021-08-10T18:49:21.2804261Z",
"refundedAt": null,
"smsReminder": false,
"emailReminder": true,
"frequency": "Minutely",
"interval": 1
}
}
Prerequisite
Login to your settings tab to update your account and bank details correctly. Please note that BVN verification is required.

Login > Settings Tab
Having implemented and completed the above steps, you are now ready to receive payments on your website.
Downtime Detection vs. Payment Routing
In the events where default processor is experiencing downtime, an available payment processor is used to accept your payments without your customers experiencing the downtime.
