Jump to content
Sign in to follow this  
freerangemum

HSBC secure-epayment module

Recommended Posts

If HSBC was working and is not working now, and oyu haven't changed anything, then there are only two possibilities.

 

1. There's a problem at the hSBC end of things.

 

2. Your hosting company has changed something but the person you spoke to doesn't know it. This is the most likely possibility. Very often when you are talking to 'Customer Support' or even 'Technical Support' you are talking to some lowly paid person who are reading their answers from a crib sheet on the screen. If it's not in the crib sheet then they don't know anything.

 

Vger

 

Thanks for your reply. I am in touch with the technical people and they are pretty responsive. I've asked for the server to be rebooted to see if this makes any difference. I'll try HSBC tomorrow but I'm guessing they will say it's the hosting. Other than that I don't have any other option but to try installing Paypal module and see if that works, hopefully with fewer problems. Not sure how happy my client will be about that. How depressing!

Share this post


Link to post
Share on other sites

Hi There,

 

First post! whooo

 

Right me and friend have been trying to get this to work on a FreeBSD server and it just aint working, the forum has many cases of this module not working with this server type. Has anyone made a module that does work with FreeBSD or has found a workaround cus its well annoying.

 

Many Thanks

 

Si (simon@seismik.co.uk)

Share this post


Link to post
Share on other sites

If you look back through this thread a few pages you may find a link to another module which may work for you.

 

Vger

Share this post


Link to post
Share on other sites

Well after lots of fun and games :( I seem to have things working on our windows server, in Test Mode at least.

 

Next problem, has anybody got this working with downloadable products? A quick search revealed nothing, but I suspect it will involve copying the billing address info into the delivery address fields. Anybody done this already? No doubt there's plenty of pitfalls awaiting me...

Share this post


Link to post
Share on other sites

Hi I wonder if anyone can offer me any advice as I've run out of things I can think of.

 

I'm trying to get the 3.1 version of the HSBC payment module to work correctly. I've followed the advice of many posts in this forum and managed to resolve the hacking attempt problem. But now whenever I click confirm order, the page title changes to "CPI - Thank you" and then goes straight back to the payment information page.

 

I never get to see whats displayed in the "CPI - Thank you" page as it changes back to the payment information page so quickly

 

Any ideas would be very much appreciated!!

Share this post


Link to post
Share on other sites

The module you are referring to is not the 3.1 module available from downloads at www.oscommerce.com, so it's not supported here.

 

Vger

Share this post


Link to post
Share on other sites

Hi,

 

If your managing to get to HSBC then you can probably assume your hash key is working correctly.

 

It sounds like your missing the return error message, check the url as it should be there. This will give you a better idea what is wrong.

 

It's most likely that you have an "Invalid Data Error", if this is the case call HSBC and find out what the invalid data is.

 

Best of Luck

 

Neil Westlake

Share this post


Link to post
Share on other sites

Thanks very much for your speedy replies!

 

The module you are referring to is not the 3.1 module available from downloads at www.oscommerce.com, so it's not supported here.

 

Vger

 

Sorry for the confusion this is the 3.1 module available from oscommerce.com, a link to this forum was provided from the contribution.

 

Hi,

 

If your managing to get to HSBC then you can probably assume your hash key is working correctly.

 

It sounds like your missing the return error message, check the url as it should be there. This will give you a better idea what is wrong.

 

It's most likely that you have an "Invalid Data Error", if this is the case call HSBC and find out what the invalid data is.

 

Best of Luck

 

Neil Westlake

 

I had gotten HSBC to test my site and they said I needed to change the storefrontid to UK0588xxxxGBP, when I view source on the confirmation stage it says "name="StorefrontId" value="0588xxxx">"

 

I noticed in the hsbc.php file in modules/payments this line

'StorefrontId'=>MODULE_PAYMENT_HSBC_ID

 

I changed this to 'StorefrontId'=> 'UK0588xxxxGBP'

 

which then posted the correct value "name="StorefrontId" value="0588xxxx">" in the confirmation stage.

However I then recieved the hacking attempt error. I guess I didnt actually change the value of the MODULE_PAYMENT_HSBC_ID variable. Where does this get assigned?

Share this post


Link to post
Share on other sites

Your Store Front ID is added in your HSBC module in osCommerce admin --> Modules --> Payment

 

Vger

Share this post


Link to post
Share on other sites
Having seen all the problems encountered by people with this contrib, I opted instead to use the contrib recommened by Ted Doyle in this post:

 

http://forums.oscommerce.com/index.php?s=&...st&p=934997

 

Use the contribution from DownHome Consulting:

 

http://www.downhomeconsulting.com/Downloads/downloads.php

 

It worked first time out of the box! It's not truly open-source as it uses some form of encryption - but hell it works like a dream.

 

Regards

 

Thanks for your adivce, I had been struggling for a few weeks with the dreaded 'hacking attempt? so instead i opted for this module and never got the dreaded hacking attempt again. The only problem I now have is that orders are not being posted back to oscom admin and when I complete a payment in test mode on the HSBC server (with the visa 41111... .test card no) I get sent back to the checkout confirmation page instead of the checkout success page. I 'm guessing this has something to do with not posting back to admin. Did you come across this too??? or should I be contacting HSBC to put in into production mode before I expect a

fully working order/transaction to take place???

 

would aprreiciate your help/advice

J

Share this post


Link to post
Share on other sites

you should be able to get it working in Test Mode - if it doesn't work properly in Test Mode you probably don't want to move to Production Mode just yet.

 

I found that with the Test card 4111... number I had to submit a billing address in the US otherwise I got errors, not sure if that's the problem you're having, but worth checking.

Share this post


Link to post
Share on other sites

HSBC changed what qualifies as 'testing'.

 

Set up a test product the price of which, including Shipping, is less than £1.00 (£0.99 max), and try that. If it still doesn't work use that product but use a genuine credit card number (it's okay you're still in Test Mode).

 

If you still get an error it's not installed correctly or else your site is not configured correctly.

 

Vger

Share this post


Link to post
Share on other sites
HSBC changed what qualifies as 'testing'.

 

Set up a test product the price of which, including Shipping, is less than £1.00 (£0.99 max), and try that. If it still doesn't work use that product but use a genuine credit card number (it's okay you're still in Test Mode).

 

If you still get an error it's not installed correctly or else your site is not configured correctly.

 

Vger

 

I've been using the HSBC module created by down home cunsulting, works fine in test mode now, but I still can't get it to post the order back to admin. Not being a strong php bod, then obviously I need the simplest solution. I'm wondering if it would be easier to go back to the HSBC 3.1 module supported by this forum? The problem is I'm extremely confused about the integration. With the 3.1 mod, I have been able to get as far as the 'hacking attempt' warning, but no further. Can anyone give me CLEAR instructions to get past this point?? I'm confused with all the various posts here!!!

Share this post


Link to post
Share on other sites
My advice - use version 3.0 not 3.1

 

Vger

how likely is it that i`'ll run into the hacking attempt problem that caused me to give up on this before???

Share this post


Link to post
Share on other sites

Just tried V3.0 and I'm still getting the hacking attempt. can anyone give me any pointers as to how to get around this?

Share this post


Link to post
Share on other sites
I think I've sorted it now. I changed the billing address of the user to a US address when using the 4111* test card number, this worked and set the order status to "processing" in my admin section.

 

I assume all I have to do now is inform HSBC that I'm no longer testing.

 

Thanks to everyone who's pitched in here.

 

Pappa

I've been racking my brain over this for a gfew days now. Could you tell me How did you got around the orders not showing up in osc admin? I get a successful payment screen, no hacking attempt, in fact all seems well, until I go into admin to find the order, and it's not there!!! I've followed everything so far in this forum. But I'm stuck with this.

 

I would really apreciate some suggestions at this point

Share this post


Link to post
Share on other sites
I get a successful payment screen, no hacking attempt, in fact all seems well, until I go into admin to find the order, and it's not there!!! I've followed everything so far in this forum. But I'm stuck with this.

 

I would really apreciate some suggestions at this point

 

Sounds like it could be one of the problems I had - HSBC was putting orders in Fraud review because it didn't like the address I was sending, basically this meant it was returning a status code that OSCommerce wasn't expecting, I only found out by digging around in the database (which I wouldn't recomend unless you've got experience of MySQL).

There's a simple fix for that scenario though - in your admin panel, under Localization>Order Status just insert a new status and call it 'Review' or something. Then your 'missing' orders should appear - unless your problem is something entirely different... :)

Share this post


Link to post
Share on other sites

If you want to see orders actually appearing in your admin panel then only put through orders for less than £1.00 in value in total (including shipping). Try using a real credit card, with the real credit card statement address - that should work.

 

In Test Mode if orders are put into 'Fraud Review' by HSBC then adding an extra Order Status will do nothing.

 

Vger

Share this post


Link to post
Share on other sites
If you want to see orders actually appearing in your admin panel then only put through orders for less than £1.00 in value in total (including shipping). Try using a real credit card, with the real credit card statement address - that should work.

 

In Test Mode if orders are put into 'Fraud Review' by HSBC then adding an extra Order Status will do nothing.

 

Vger

 

Thanks Vger,

 

I've tried that, order is showing as approved in the HSBC control panel (and has not been sent to fraud review), but still does not in osc admin. Dug around in the database and there is no record of the orders held within the orders table so its unlikely that creating an extra oder status will help- Do you have any more suggestions??? I don't suppose it will make a difference but I'm also using STS. It must be something wrong within my site as the other HSBC module (by downhome consulting) ran into exactly the same problem.

 

J

Share this post


Link to post
Share on other sites

If a transaction is placed into Fraud Review then you will not see it in your osCommerce admin panel. It only appears there if the transaction is approved.

 

If the order is now approved by HSBC but is not coming back to your site then it's probably an includes/configure.php issue.

 

Make sure that the http and/or https_cookie_domain settings are as follows:

 

http_cookie_domain = "www.yourdomain.com"

https_cookie_domain = "www.yourdomain.com" or just "yourdomain.com" depending on how the cert was issued.

 

If it's a shared ssl then try leaving the https_cookie_domain and https_cookie_path blank - nothing between the two apostrophies ''

 

 

I don't suppose it will make a difference but I'm also using STS

 

Yes, it will make a difference, to many things, but not to whether an order gets placed into Fraud Review.

 

Vger

Edited by Vger

Share this post


Link to post
Share on other sites
Make sure that the http and/or https_cookie_domain settings are as follows:

 

http_cookie_domain = "www.yourdomain.com"

https_cookie_domain = "www.yourdomain.com" or just "yourdomain.com" depending on how the cert was issued.

 

If it's a shared ssl then try leaving the https_cookie_domain and https_cookie_path blank - nothing between the two apostrophies ''

Vger,

I'm using a shared SSL, yet my catalog/includes/configure.php file shows the following:

 

define('HTTP_SERVER', 'http://buzzstuff.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://web24.secure-secure.co.uk/buzzstuff.co.uk/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'buzzstuff.co.uk');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '///');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '///');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

-https_cookie_domain and https_cookie_path are already blank, any suggestions? Sorry to be a pain I just can't seem to get my head atround this one.

Edited by disenorojo

Share this post


Link to post
Share on other sites

define('HTTPS_SERVER', 'https://web24.secure-secure.co.uk/buzzstuff.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Vger

Share this post


Link to post
Share on other sites
define('HTTPS_SERVER', 'https://web24.secure-secure.co.uk/buzzstuff.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

 

Vger

Ok now I'm puzzled, made those changes and payment with a real card, but still not getting the order showing up in admin OR the database. Strange...

 

Thanks anyway

J

Share this post


Link to post
Share on other sites

I'm having a problem... The hsbc module is installed and to all intents and purposes its working (confirmation emails are being sent). However, the new orders do not appear in the admin section, orders (although they do appear in the andmin/index menu as pending). I checked in the database and the order_id field is filled in the orders table but then not in orders_products, orders_products_attributes, orders_status_history or orders_total. Manually adding the relevant order_id restores the order to the admin, orders pending list.I installed the cash on delivery module and did a test order and it all went fine - the order appeared as expected.It's v3.1 we're using and its in production mode (I know, but xmas sales put pressure on!)Any help would be fantastic!Derek

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×