HSBC Secure ePayments API
If you are willing to do a little work, you'll be pleasently surprised that you can use the fully integrated ClearCommerce module as a base to link into the HSBC Secure ePayments API.
This means that clients do not get redirected to the HSBC website as part of the order process. It works out the box for Visa and Mastercard, and requires a little bit of modification for Switch/Solo. For config options: Code:
Name = Username (normally your surname) From: Code:
$port = ($module_params["testmode"]=="N" ? 443 : 11500); Code:
$port = ($module_params["testmode"]=="N" ? 443 : 443); If you would like to add Switch/Solo support; make the following changes to payment/cc_fuse.php: Line 53: Add the following: Code:
if ($userinfo["card_type"] == "VISA") { Line 67 (on original document - next line after "$post[] = "<Expires...": Code:
$post[] = "<IssueNum>".$userinfo["card_issue_no"]."</IssueNum>"; You will need to enable: Code:
Enable 'Issue Number' and 'Valid from' fields in the CC info form In General Settings. |
Adam if that works then your are a true gent. is this got the latest 4.0.14???
If poss could you post the entire script (including switch/solo bits as im sure most people use them) here and just xxxx out your security sensitive bits. I personally would appreciate and as im sure others would |
I have simply modded a module that already existed. When I have a free moment, I will make it into its own module so it is easily distributed.
We are using 4.0.14. If you need any help making the changes I outlined, please do not hesitate to contact me off forum. |
surely, it is a great addition. cheers....
|
Found one small bug for Switch/Solo.
The final code changes should read: Code:
if (($card_type == 9)||($card_type == 10)){ |
can someone please, please please just post the full script with the changes
I've made the changes as above but it just hangs at the "Your order is being placed. Please wait..." section |
You need to make sure the $port line is set to 443 : 443; else it will hang until it timeouts.
Also make sure that the module is set to HTTPS in the Payment Modules area of the admin control panel. Adam |
Yeah done all that still just hangs,
This is my code - I will happily pay if someone can sort this out Code:
<?php |
a.harris бё100 to you if you can get this to work for me by tomorrow 8am (and im a man of my word)
|
Has this been completed, as i am just getting this from HSBC and would like to use my own pages and dont want the customer to be diverted.
I am using 4.0.18 at the moment and my full code which is at shopcart/payment/cc_fuse.php is below. Code:
<?php |
Re: HSBC Secure ePayments API
Hi
Im not a techie at all so sorry if this makes no sense. The people we employ to do our web based work are having some problems with setting up the secure epayments xml (HSBC) payment gateway. When we have this set to HTTPS, when a purchase is made it I get a message saying the connection is not trusted and the site has an invalid security certificate. If i have it set to HTTP it freezes at hangs at 'your order is being placed... please wait' Is it supposed to be set to HTTP or HTTPS? Is there any common problems that i need to inform our developers of? Thanks for any help |
All times are GMT -8. The time now is 09:58 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.