Hi
no return URL in the install I have?
HSBC CPI Secure ePayment Card Processing Module 1.1a (w/ GNU license file) downhom 25 Nov 2005
HSBC CPI Secure ePayment Card Processing Module
Prerequisites:
Ensure PHP has the mhash, mcrypt modules. A simple way to do this is to create a file named test.php including only this line:
<?php print phpinfo(); ?>
Then access the page by going to http://www.yoursite.com/test.php. Look for a sections with the names mcrypt and mhash. If they don't exist, contact your ISP and request they install the mhash and/or mcrypt module in PHP.
If your ISP refuses, find an ISP that will either install the modules or already have the modules installed.
Installation:
- Copy the files in the catalog directory to your the catalog directory of your Os Commerce store.
- Open the includes/applications_top.php
- Find the following line near the top of the file:
// include the list of project filenames
require(DIR_WS_INCLUDES . 'filenames.php');
- Add the following below
// Capture the session from the hsbc post
if ( isset($HTTP_POST_VARS['OrderId']) ) {
list($hsbc_session, $null) = split('-', $HTTP_POST_VARS['OrderId']);
$HTTP_POST_VARS['osCsid'] = $hsbc_session;
}
- You should now see "HSBC CPI gateway" in the Payment Modules section of your stores admin.
Tips:
- If the HSBC payment module works in test mode but gives the "The transaction failed because of invalid input data" error in Production mode, contact HSBC and have them put your HSBC account in Production mode.
- You merchant id is the number that begins with UK and ends with GBP. If you get this wrong, you'll get an error message.
- Test mode requires real credit card numbers and they also do fraud checking. For a card to process successfully, I had to use a card on a UK bank and a customer's address for the UK. After several successful tests, I started getting fraud checking errors. Changing to another UK card on a UK account solved the problem. So if you get fraud checking errors in test mode, change to another card number.
Funding for this improvement provided by 110bitsolutions and written by Duane Hinkley of Down Home Consulting, DownHomeConsulting.com.
$Id$