PAYMENT GATEWAY INTEGRATION IN PHP

INSTALL PHP

• Download and install Xampp

• Within your /xampp/htdocs directory run git clone https://github.com/ikechukwukalu/instantpay-php-integration.git

INDEX.php

• Add the relevant country code to the form action attribute. For Nigeria would be ``ng`` and so the form action value should be ``https://ng.instantbillspay.com/instantpay/payload/bill/payment``

• Add your merchant code to this form input<input type="hidden" class="form-control" id="merchantID" name="merchantID" value="NG0000000" required>

MAKE-HASH.php

• Add the your secret key to the array
echo hash_hmac(
    'sha512', 
    $_POST['hash'], 
    '' //Add Secret Key
);

PAYMENT-NOTIFICATION.php

• Add the relevant country code. For Nigeria would be ``ng``
$url = "https://ng.instantbillspay.com/instantpay/api/bill/refstatus?ref=" . $_GET['Ref'];