Web Plugin Guide

ALATPay Web Plugin is a piece of software that acts as an add-on to a web browser and gives businesses the ability to setup a payment interface on the fly.

Enables your business to start collecting payment securely and offers different payment options/channels.

  • Card Payment Option

  • Bank Account Option

  • Bank Transfer Option (Generates virtual accounts)

Example Plugin Interface

Plugin Snippet

<button onclick="showPayment()"> Pay with Alatpay </button>

<script src="https://alatpay-client.azurewebsites.net/js/alatpay.js"></script>

<script>

let popup = Alatpay.setup({

apiKey: "", // subscription primary key or secondary key

businessId: "", // business Id

email: "", // [Required] customer email

phone: "", // customer phonenumber (optional)

firstName: "", // customer name

lastName: "", // customer last name

metaData: null,

currency: "NGN",

amount: 0, // [Required] Payment Amount

// callback on tranaction(optional). response payload is similar to callBackUrl payload

onTransaction: function (response) {

console.log("API response is ", response)

},

// callback on dialog closed. (optional)

onClose: function () {

console.log("Payment gateway is closed")

}

});

function showPayment(){

popup.show();

}

</script>