Although I think I'm an OK Web publisher, and can install scripts, the HSBC ePayments CPI has confounded me, mainly due to the lack of BASIC information... their documentation contains NO mention of the "library files" they supply.
I would be most grateful, as I am sure would be your average Web publisher, if someone can provide some basic information, on HSBC ePayments, based on these questions:
1. The HSBC supplied C files, such as libCcCpiTools.so are what exactly? I've manage to find out that they are 'shared objects', an operating-system specific library files, that provide the hash-generation functions. For example, using phpinfo() function, I discovered that my server runs Linux, so I need to use the libary file libCcCpiTools.so.
2. Many Web designers will be unable to install the C library files themselves (do you need 'root' access?). I contacted my Web host who told me that if I sent the library files to them, they would move it into the /usr/lib directory of the server. I recall that Unix filenames are case sensitive, so I FTP'ed the file to my Webspace in binary mode, and my hosts confirmed that it had been done.
3. Once the C library file was placed in the /usr/lib directory of the server, my Web host told me that I need do no more at my end, and that I should be able to see details of the C libary using the phpinfo() function. I found an entry called mhash, and assume that this is it?
4. Presumably, I should now be able to test the C library, by using the HSBC supplied sample code, a Web page called sample.html that accesses a file called TestHash.e But what kind of file is TestHash.e? I've not come across it before.
5. Is there another way to test that C libraries are installed correctly, without making use of a file of the type TestHash.e? For example, can a PHP or CGI files access the library directly?
6. Presumably the file TestHash.e contains a test hash number. In which case, how do I create one containing MY hash number? Perhaps I don't need to if PHP or CGI can access the library file directly?
Thanks to all that reply and clarify.