Forum Moderators: coopster

Message Too Old, No Replies

HSBC CPI with PHP Hash Gen issues [on windows]

         

Sketchpad

10:01 pm on Sep 20, 2006 (gmt 0)

10+ Year Member



Hi,

I'm having problems with the Hash Generation stage. I've looked thru the various threads already on the board and can't find a similar issue... but, a few of you guys seem to have it all sorted so here's *fingers-crossed*

I'm using the TestHash.exe, CcOrderHash.exe on a Windows install of Apache.

Via PHP, I am able to exec() TestHash.exe and generate a test hash (which matches the example in the instructions.PDF).

When I try to use CcOrderHash.exe with my supplied Hash and various fields I get an error of:

Content-type: text/html [1] => [2] => [3] => [4] => [5] => [11] => [12] => [13] => [14] => 15] =>
Sample CPI Merchant OrderHash

ERROR: No Content-Length header was found.

I'm using the same scripting as used in the call to TestHash.exe, just changing the Hash and adding the needed fields. Below is the string I exec():


CcOrderHash.exe "MY_HASH" "HTTPS_1" "HTTPS_2" "T" "TestAttempt" "2217" "826" "STORE_ID" "TIME" "Auth" "UserId"

If I run it from the command line I get the same problem/error :(

Perhaps someone could help guide me thru' this stage?

Cheers

eelixduppy

2:55 am on Sep 22, 2006 (gmt 0)



Welcome to WebmasterWorld, Sketchpad!

>>>If I run it from the command line I get the same problem/error

I'm not familiar with this program, but it seems like you are missing an argument for CcOrderHash.exe if it doesn't work in the command line. I would first get it working there before you try to add it to your PHP script. Recheck the arguments that go along with the executable to make sure yours are correct.

Best of luck!