LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2009, 06:17 AM   #1
lauriedunsire
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
Question HSBC CPI Secure Payment Integration


Hi everyone,

I am in desperate need of assistance in integrating the HSBC CPI secure payment system into a website for a friend of mine. Now firstly Iíll admit I am a designer and my coding skills are limited to say the least, especially in this field it seems! I understand I may be out of my depth with a few of these issues, however what is frustrating me is the fact my friend was sold this system by HSBC and was told that SHE could easily implement it herself and needed know coding knowledge, all it would take was pasting a piece of code into a page of the website. However after a few attempts at getting this system working I am struggling and the phone support have actually told me THEY donít know about the linux installation either, and they canít guarantee they have anyone to help me! So I am almost at the stage of either advising her to pay someone else to implement this or to try and get her money back and go elsewhere.

I have a few basic problems that I need clarifying. One thing is how do I change the environment variables?

One part of the guide Iím using, supplied by the HSBC, says:

Quote:
Add the path to libCcCpiTools.so to the LD_LIBRARY_PATH environment variable (either by
suitable file location, or direct addition). It may be necessary for a merchant to speak to their host
regarding suitable location / installation of this file.
Sorry if itís a stupid question, but I have implemented a lot of scripts before and changed permissions etc. but never anything as complex as this is turning out to be!

At the moment when I run the sample form Iím just getting a 405 error, so there is some programming issue.

If anyone has any experience with this system any guidance would be HUGELY appreciated, if you need further info on what I have done so far please let me know.

Many thanks in advance,

Laurie
 
Old 06-30-2009, 10:05 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,821
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
First you need to know where "libCcCpiTools.so" is. (e.g. /somehsbcdir/lib/libCcCpiTools.so). You need to add whatever that full PATH is to your LD_LIBRARY_PATH environment variable.

You can find the file if you don't know where it is by typing:
find / -name libCcCpiTools.so

Note: Sometimes library files are in archive files (.a files ) or need to be linked from a specific version of the .so (e.g. .so.1) so you might need to do:
find / -name libCcCpiTools*
to find any file with that name and a suffix.

Setting environment variables is usually as simple as:
export VAR=value

So setting the variable would be something like:
export LD_LIBRARY_PATH=<pathto>/libCcCpiTools.so
where <pathto> is the path you found above.

Note that sometimes the variable already has values. For PATH variables like PATH and LD_LIBRARY_PATH you can add multiple values separated by a colon (.
e.g.
export LD_LIBRARY_PATH=/usr/lib:/someotherdir/lib:<pathto>/libCcCpiTools.so

Also if LD_LIBRARY_PATH is being set in multiple locations you can insure you add the library by appending it to the variable:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<pathto>/libCcCpiTools.so

This link shows setting something similar on Suse Linux:
http://forums.opensuse.org/applicati...variables.html

What they call /etc/sysconfig/apache2 would be /etc/sysconfig/httpd on RedHat (and CentOS and probably on Fedora).

You don't mention what Linux distro and version you're using. It may not be in /etc/sysconfig at all. Looking at your /etc/init.d/httpd startup file (or maybe /etc/init.d/apache (or apache2) file should let you know what files are being loaded at start.
 
Old 07-02-2009, 07:38 AM   #3
lauriedunsire
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply jlightner, OK I'm probably going to sound ridiculusly amateurish by asking this but to set the variable what program should I be using? Should I be using a command prompt program? I've been looking with the code itself but there doesn't appear to be anything to change within this, not that I can see anyway.

Sorry if I'm asking stupid questions, the honest truth is I have no experience of having to change such things. The most complicated things have previously been for me is simply implementing PHP scripts or setting up mySQL databases.

Thanks,

Laurie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_proxy_balancer and E-Payment linux2man Linux - Enterprise 1 11-25-2008 11:13 AM
LXer: HSBC gets behind Microsoft/Novell in Linux consolidation move LXer Syndicated Linux News 0 03-22-2007 03:01 AM
LXer: HSBC to Standardize on Novell's SUSE Linux LXer Syndicated Linux News 0 03-14-2007 12:31 PM
payment for linux jobs mohitsaxena80 LQ Suggestions & Feedback 5 12-09-2006 04:10 PM
The payment philosophy of mandriva pterandon Mandriva 6 04-17-2005 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration