Forum Moderators: coopster

Message Too Old, No Replies

HSBC CPI OrderHash.e

HSBC CPI OrderHash.e Linux

         

ScottUK

5:46 pm on May 9, 2006 (gmt 0)

10+ Year Member



Hi all,

I have read through these posts trying to find a solution to getting the sample.html to work with HSBC CPI.

I am Using the Linux supplied files from HSBC.

Firsly HSBC documentaion is only half helpful Their telephone support is also half helpful...unfortunatley the same half. My hosting company is of no help at all.

After 3 days - I found this site and am hoping someone can help me save what is left of my hair.

The bottom line is when running sample.html I am unable to execute OrderHash.e ...it simply asks if i want to download this file.

What I have done.

I have the correct storeid
I have the correct https:// urls
I have correctly uploaded
I have correctly set permissions

The libCcCpiTools.so is according to my ISP already installed on the server in lib/url

I have a little experience in scripting though I have never come across .e extensions ever.

I am assuming that OrderHash.exe is simply not calling the libCcCpiTools.so

I was on the phone to HSBC for over an hour ... they plan to call me back tomorrow ...is it really this difficult to work it out even for them?

Any help greatly appreciated.

Thanks

hughie

10:39 pm on May 9, 2006 (gmt 0)

10+ Year Member



HSBC's nightmare e-commerce integration rises from the deep once again ;-)

It's actually reasonably straight forward once you get the hang of it, the problem is HSBC continues to hand out corrupt files on CD's, refuses to give any meaningful documentation on how to integrate the system, and provides iffy support.

Here is my post from my attempt a while ago, I've since integrated three other systems with it and they're all fine.

[webmasterworld.com...]

I've got my setup as such:

/home/websitename/public_html/ (my site files)
/home/websitename/hsbc_files/ (ccorderhash.e .c etc..)
/usr/lib/libCcCpiTools.so (make sure your libcccpitools s is 82583 bytes as they released a dodgy one that was around 60k which doesn't work)

Then use a similar setup to my lot in here
[webmasterworld.com...]

remembering to post as a hidden field, everything you use to create your hash.

Hope that's a start for you.

Cheers,
hughie

coopster

10:43 pm on May 9, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Glad you came along there, hughie! I was just about to welcome ScottUK to WebmasterWorld and try to dig up those links. Thanks!

ScottUK

12:14 am on May 10, 2006 (gmt 0)

10+ Year Member



Hi,

Thanks for the response and the welcome.

I attempted to use the information you supplied and I feel that this is information i may need but beyond where i currently am. As implementing these changes made no difference.

The situation

i go to my browser and enter the url to call up sample.html

The form comes up all fields are correct (although not hidden at this stage)

I click "Submit" and it then asks me if I wish to download OrderHash.e as it is an unknown file.

Thats as far as i get. I just can't execute it.

Forgive me if i am still missing the obvious, scripts generally baffle me at the best of times.

Thanks

hughie

1:55 pm on May 10, 2006 (gmt 0)

10+ Year Member



i would ignore the sample.html totally, i've never really been sure how that works or why that sample is in there.

I would just look at getting php to generate the hash first.

Ta,
hughie

ScottUK

3:46 pm on May 12, 2006 (gmt 0)

10+ Year Member



Hi Hughie,

....ok I am now very very excited and ...releived ....I think I have almost cracked it! What can I say but many thanks for getting me this far.

I can now create the orderhash - i can send data to HSBC it all works their end.. all wonderful as it has been confrimed by them they got my test transactions.

I'm ready to party - what a nightmare this was.

Ok before I party.... I am getting an error on the return.
I am asked to download Results.e as now this file will not execute.

I get a communication error.

I'm writing this now as i really had to thank you, I will look around on this site for other posts to see if anyone has help on this issue but if you have any more great help -regarding what i see as the final issue please let me know.

Scott

hughie

10:18 pm on May 14, 2006 (gmt 0)

10+ Year Member



Hi Scott

how far are you getting with the POST to HSBC, you shouldn't be getting any request to download anything...

Here's the process you should losely be following/working through

checkout->
address details (delivery/billing)->
confirm(creates the HASH etc)->
- HSBC intro page (on their server) ->
- HSBC card entry->
- HSBC confirm->
- HSBC Complete->
back onto your website.

HSBC will also fire off a POST to a secure page that isn't seen by the user, if everything is OK you should be getting a code 0 through, if not something is amiss. Set up your PHP to record the HSBC return

<?php
echo '<pre>';
print_r($_POST);
echo '</pre>';
?>

ScottUK

12:11 pm on May 19, 2006 (gmt 0)

10+ Year Member



Hi Hughie,

Done it!

Not for one but now two HSBC clients!

Everything is working like a dream. Don't think i've ever felt so pleased with anything i've ever had to do.

I wanted to thank you for your guidance and support through this extremely trying time.

All the best, Scott.

hughie

1:09 pm on May 19, 2006 (gmt 0)

10+ Year Member



nice one!

It's strange as it's actually quite straight forward if you know how, i wish HSBC would do a simple checklist of events (similar to what we've done here).

There was a thread a while back that was about 4-500 posts long about it. In the end it boiled down to HSBC sending out a corrupt file that no-one could work.

I think i had a few scoops to celebrate when i got my first one sorted ;-)

Cheers,
hughie