PHP sample of the “pay Now” button in sandbox mode
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script> </head> <body> <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;?> <?php $data = "$APILoginID|$method|$version|$totalamount|$utc|$ordernumber||"; $hash = hash_hmac('md5',$data,$SecureTransactionKey); ?> signature=<?php echo $hash;?> >Pay Now</button> </body> </html>
Notice that I have masked the transaction key since it’s consider sensitive information.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article