Author Topic: HSBC CPI Integration  (Read 167055 times)

devkungfoo

  • Beginner
  • *
  • Posts: 9
-
« Reply #30 on: September 13, 2005, 20:48:54 pm »
OK, Since I couldn't get my code to generate a decent hash, I dumped it in place of the code provided here
and so far so good.

1. The field names are case sensitive, so replace:
         'UserID' => substr($dbbt->f("name"), 0, 32),
with
         'UserId' => substr($dbbt->f("name"), 0, 32),

i.e. UserId not UserID

2. if I block the billing details - everything is fine, it goes to hsbc and prompts
the user for his credit card details. As soon as I add the billing details back it
returns code 10.

I've checked the billing details and I'm 100% certain that all is good.
So that leaves the following possibilities:

1. Quotes around fields that contain spaces
2. Empty fields (in my case BillingCounty) - if empty should it be left out ??
3. I'm delusional and 100% certainty isn't good enough!!

the hsbc documentation is horribly lacking and it's a shame because decent integration
procedures would probably save them a truckload of cash in call centre costs  >:(

I'm gonna be on the phone with hsbc tomorrow, so I'm sure I'll sort out the billing detail problems.
And I'll let you guys know.

Some News
If the billing address details are sent in your post to hsbc then the shipping details
are required too!

And boom! once you provide both the billing and shipping its all fine and dandy.

I suggest that conditional you have on whether on not to provide shipping details should include the billing details
as well, so either just the bare minumum or all details.


stovesy

  • Beginner
  • *
  • Posts: 31
    • KiteAir
Re: HSBC CPI Integration
« Reply #31 on: September 14, 2005, 12:27:42 pm »
!!! FINALLY !!!

It's working.
I've just managed to process my first transaction.
It needs polishing now.

I'll post the code later on today.

stovesy

  • Beginner
  • *
  • Posts: 31
    • KiteAir
Re: HSBC CPI Integration
« Reply #32 on: September 15, 2005, 15:04:18 pm »
Give this a try then guys, and let me know how things go on.

Make sure that the 'Payment Method type' is 'bank debit'.

[attachment cleanup by admin]

gwen

  • Jr. Member
  • **
  • Posts: 332
Re: HSBC CPI Integration
« Reply #33 on: September 17, 2005, 20:31:24 pm »
please could you participate to

http://mambo-phpshop.net/index.php?option=com_smf&Itemid=71&topic=12015.0

you seem to have a big experience on this matter now  :)
Gwen ex-dev team member. I used virtuemart to build www.doudouplanet.com a very good experience for me !

chikkensoop

  • Beginner
  • *
  • Posts: 8
Re: HSBC CPI Integration
« Reply #34 on: October 19, 2005, 12:09:21 pm »
Just a note to stovesy to see if he's still around... I've not managed to get this working, once it gets to the confirm order stage where it should launch the user off to the CPI pages it just dumps me back to index.php... any ideas?

devkungfoo

  • Beginner
  • *
  • Posts: 9
Re: HSBC CPI Integration
« Reply #35 on: October 20, 2005, 09:43:24 am »
Hi Chickensoop,

there are a number of things that can cause this, first thing you need to check:
when it throws you back to the index page are there querystring parameters passed to the index page?

if there is then it is probably an HSBC error code which you can use to get more detail on what the problem may be.

chikkensoop

  • Beginner
  • *
  • Posts: 8
Re: HSBC CPI Integration
« Reply #36 on: October 24, 2005, 11:51:36 am »
Nope, absolutely nothing thrown back... it goes through the checkout process asking the user for their billing and postal address, pick a postage type, then gets to a summary screen where I would guess it would launch the user over to the HSBC servers to enter payment details... but the form on that page simply has http://www.insertsitenamehere.com/index.php as the target of the form around the button they click to continue.

Any thoughts?

ssm

  • Beginner
  • *
  • Posts: 38
Re: HSBC CPI Integration
« Reply #37 on: October 24, 2005, 16:01:04 pm »
Are HSBC still offering HSBC CPI Integration? I couldn't find any details on their site.

Man, its complicated trying to find a suitable online merchant account and an Online Payment Services Provider.

I just want to try and move from the less professional Worldpay.

Please help.

stovesy

  • Beginner
  • *
  • Posts: 31
    • KiteAir
Re: HSBC CPI Integration
« Reply #38 on: October 25, 2005, 10:21:33 am »
Nope, absolutely nothing thrown back... it goes through the checkout process asking the user for their billing and postal address, pick a postage type, then gets to a summary screen where I would guess it would launch the user over to the HSBC servers to enter payment details... but the form on that page simply has http://www.insertsitenamehere.com/index.php as the target of the form around the button they click to continue.

Any thoughts?
Check the configuration tab for the payment module.
You should have a whole host of code in the Payment Extra Info field.
This is where we generate a button to jump to the HSBC site.
If it's not there, click the Reset Extra Info button, to replace with default code.

Let me know how you get on.
On another note, I've started looking at the HSBC API. I'll post up another thread as I get it a little more working.

chikkensoop

  • Beginner
  • *
  • Posts: 8
Re: HSBC CPI Integration
« Reply #39 on: October 25, 2005, 13:05:01 pm »
I've reset the extra info and the target of the confirm order form/submit button is still /index.php...

I've set the store's checkout process to standard (ie shipping address, billing address, payment, complete order), I've uploaded the hsbc files from this thread (the latest ones), set all the relevant keys, urls etc in the config, there's all the standard code in the payment extra info field and it still doesnt work :(

stovesy

  • Beginner
  • *
  • Posts: 31
    • KiteAir
Re: HSBC CPI Integration
« Reply #40 on: October 26, 2005, 13:25:44 pm »
Just a though. Are you using the latest file ?

It's in Downloads Home » mambo-phpShop Files »  Payment Modules.

chikkensoop

  • Beginner
  • *
  • Posts: 8
Re: HSBC CPI Integration
« Reply #41 on: October 28, 2005, 11:06:11 am »
yes, latest version being used

husayt

  • Beginner
  • *
  • Posts: 15
Re: HSBC CPI Integration
« Reply #42 on: October 29, 2005, 23:40:56 pm »
I am not sure, but maybe the reason is that you are not using SSL.

 Actually question: does it matter?? I have read in HSBC documentation that SSL connection is must. Did anybody manage to get it working on unsecure connection?

Thanks in advace.


devkungfoo

  • Beginner
  • *
  • Posts: 9
Re: HSBC CPI Integration
« Reply #43 on: October 30, 2005, 00:58:16 am »
in my experience ssl is a must...

stovesy

  • Beginner
  • *
  • Posts: 31
    • KiteAir
Re: HSBC CPI Integration
« Reply #44 on: October 30, 2005, 14:16:05 pm »
Yep. HSBC need a secure connection