documentation provided by the bank are as follows:-
Preparing and sending payment request message using HTTP
form post
<Form method=”post” action=https://hblpgw.2c2p.com/HBLPGW/Payment/Payment/Payment>
<input type=”text” id=”paymentGatewayID” name=”paymentGatewayID” value=”234”/>
<input type=”text” id=”invoiceNo” name=”invoiceNo” value=”00000001234567890333”/>
<input type=”text” id=”productDesc” name=”productDesc” value=”Test Product”/>
<input type=”text” id=”amount” name=”amount” value=”000000010000”/>
<input type=”text” id=”currencyCode” name=”currencyCode” value=”764”/>
<input type=”text” id=”userDefined1” name=”userDefined1” value=”custom data”/>
<input type=”text” id=”nonSecure” name=”nonSecure” value=”Y”/>
<input type=”text” id=”hashValue” name=”hashValue”
value=”94E8E91C29E73B9648011FADBAE19849B520B24B”/>
</Form>
5. Hashing
In order to have data integrity and to identify the correct source of the request and
response, merchant needs to send hash value together in the request and HBL
PGW returns the hash value in the response.
Hash value is computed using HMACSHA256 algorithm with merchant secret key
(provided by HBL to merchant).
HashValue = merchantID + invoiceNumber
+ amount + currencyCode + nonSecure
Sample code:
Hashing function in PHP
<?php
$signData = hash_hmac(‘SHA256′, “signatureString”,’SecretKey’, false);
$signData = strtoupper($signData);
echo urlencode($signData);
?>
Plugin Author
2c2p
(@2c2p)
hello sushil37,
HBL payment gateway and 2C2P Redirect APIs are not the same. and currently we do not support HBL Payment Gateway in this plugin. You may have to modify the plugin on your own if you want to use for HBL.
hey @sushil37
did you manage to integrate HBL? I need to do it too.
hey @sushil37
did you manage to integrate HBL? I need to do it too.
@kcanil89 I might be able to help you. Send me a message on FB https://www.facebook.com/shreyanstamang
It would be great if anyone who has completed or integrated HBL payment gateway posts some code samples? I am trying to integrate this as well.
Thank you!
@shreyans @kcanil89
I have successfully integrated HBL+Woocommerce. Let me know if you guys need help.
Hello @sakarbhusal,
Can you please share some codes or documentations some where? Will be truly helpful for developers like us in future.
For now can you please explain how to check test payment? I am developing it as well.
Thank you.
email me “sus.ill.thapa@gmail.com” if u still got any problems! I’ve sucessfull integrated it few months back and its running smoothly without any errors.
For those who are having problems, I have integrated successfully and wrote a blog here
Might be helpful for other developers.