Support Services

PHP Pay Now Button

PHP sample of the “pay Now” button in sandbox mode


<script src=""></script>




<div id="message" style="background-color:#e5e5e5"></div>


<button api_login_id=<?php echo $APILoginID;?>

version_number=<?php echo $version;?>

total_amount=<?php echo $totalamount;?>

utc_time=<?php echo $utc;?>

order_number=<?php echo $ordernumber;?>

method=<?php echo $method;?>


$data = "$APILoginID|$method|$version|$totalamount|$utc|$ordernumber||";

$hash = hash_hmac('md5',$data,$SecureTransactionKey);


signature=<?php echo $hash;?>

>Pay Now</button>





Notice that I have masked the transaction key since it’s consider sensitive information.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.