HSBC CPI Order Hash Generator
July 13th, 2008
Recently I’ve been designing an online store for a bag designer in the UK who uses HSBC as their payment gateway. Currently in development stage, we ran into problems whilst integrating the store with HSBC online payments.
Security wise, HSBC’s online payment system is insanely strong (well it should be…), with numerous hash keys and etc to deal with. Your server requires a 128bit SSL certificate, and root access to install HSBC’s hash key generators, libraries and such. SSL tick. Root access, no. The server my client was using did not have root access, OR a working cgi-bin (I don’t recommend 1&1) Calamity strikes!
We weren’t able to generate an order hash key, a unique key for each order which is required to actually process the payment. After a quick Google search I found this, a PHP version of the HSBC order hash generator - thus not needing root access to install HSBC’s crappy libraries and tools. You’ll still need to tweak it a bit for your own application but so far, so good, my developer integrated it, and it works like a charm. Well awesome!
Thought it might come in handy, good luck to anyone dealing with HSBC’s CPI integration!
Huge thanks to Adam my developer too!
PHP HSBC CPI Order Hash Generator
