Forums Index > Mewsoft Products > Auctionawy > Linkpoint Question
terry4515 First Post Posted on: 06-15-08 02:05 AM
Linkpoint Question

I am setting up Linkpoint in the Auctionawy software and have the following questions:

1. The Auction software is asking for a secured temporary directory. My current hosting provider is On smart. It is asking for a directory location such as "/secure/temp", your example.

2. Auctionawy is also asking for what looks like a directory called "lbin". I should be able to create this directory, correct. Unless this is where some of all of the Auctionawy software is to be placed.

The domain name is cauction.org

Thank You
mewsoft Reply #: 1 Posted on: 06-15-08 04:25 PM
Re: Linkpoint Question

please upgrade the file merchant.pm from our site, download the latest file, unzip then only upgrade this file.

The new updated file is updated for the latest version of LinkPoint API version 3.0 and above.

In this new version, you only need to fill these two fields in your admin:

Store Number:
Key File (.pem):

set the Key File (.pem) field to the full server path to your .pem file that you get from Linkpoint.

Remember that you need to install the linkpoint API which contains also linkpoint perl module llperl. See their site for the API for perl.

Mewsoft Support
www.mewsoft.com

terry4515 Reply #: 2 Posted on: 06-15-08 10:01 PM
Where is the upgrade

Where is the upgrade? All I see is the software download (demo versions) and an FTP utility which does not indicate a single file upgrade.

Auctionawy
terry4515 Reply #: 3 Posted on: 06-15-08 10:31 PM
FTP upgrade

I need to verify something before I upgrade the file as I have a lot of custom changes already in place and would not want the upgrade utility to overwrite all the CGI & PM files.

At the top of the utility you have a statement

"The auto installer can do two things, do a fresh new installation, or upgrade selected files."

But, then you also have stated that

"If you select to upgrade only please check the files you want to upgrade"

The only option for installing CGI & PM is to install ALL. Is this selected when the utility gets started?

My FTP path are
/public_html/cgi-bin
/public_html

Perl path is correct.

Can you verify this?
mewsoft Reply #: 4 Posted on: 06-16-08 01:10 AM
Re: Linkpoint Question

Do not use the Auto installer.

Click the link "My Account" on our site, then enter your license number and you will see the list of your products to download.

Mewsoft Support
www.mewsoft.com

terry4515 Reply #: 5 Posted on: 06-17-08 12:49 AM
installation

I find that your site lacks documenation especially for the Auctionawy package. I could not locate anything on installation of molude
llperl for linkpoint, where is it to be placed?
mewsoft Reply #: 6 Posted on: 06-17-08 02:34 AM
Re: Linkpoint Question

This is a third party product, you go to their site and follow their documentations.

Mewsoft Support
www.mewsoft.com

terry4515 Reply #: 7 Posted on: 06-18-08 02:37 AM
Linkpoint

After checking I found that all the required files for Linkpoint are already installed by my IS On-Smart. In addition, I have updated the merchant.pm file as well. The only fields which are filled in is the Auctionawy software setup are

store number > 111111

key file > /home/username/public_html/cauctionkey.pem < file is located here and is correctly done

I get the following error message:

Payment Error:

Credit card processing error.
Please go back and check your credit card information.

And there are no transaction listed in the Linkpoint logs. I believe they are not talking to each other.

Pleas help as I already spoke with the payment processor (Linkpoint) and the ISP (on Smart) and they have done everything on there end and both are working according to them on there side.
terry4515 Reply #: 8 Posted on: 06-18-08 03:30 AM
Update on Linkpoint Module - lpperl.pm

Also, the lpperl.pm file has been uploaded to the cgi-bin directory. Also, I was told by Linkpoint that there was an update and llperl no longer works. The new filename is lpperl.pm not llperl as you specified. The permission is set at 755 and have tried it in other directories as well since I do not know where the includes come from.
mewsoft Reply #: 9 Posted on: 06-18-08 11:18 PM
Re: Linkpoint Question

That's what I said, I said the software is updated to work with the latest Linkpoint version 3.5 and you need to install their latest API kit. As I said since this is a third party software we do not support it simply it needs the root access to install it, so for us to install their API and test it, we will need your server root login and full access to install system libs etc, and we will need your linkpoint login, plus it will be at $50/ hour and at least will be 4 hours paid in front first.

Mewsoft Support
www.mewsoft.com

jdaustin Reply #: 10 Posted on: 07-06-08 04:04 AM
Follow up

Im following up where Terry left off, with the same issue.
I started with a fresh install of your software downloaded from your web site. I found it odd that a linux version would have a windows installer. Is there a tarball (tar.gz) somewhere I could download instead?

The version installed from your website did not appear to install a merchant.pm file in the cgi-bin/na directory as the version my client has installed does.

The version for download shows the following parameters for linkpoint:
Store Number:
Key File (.pem):
Path to lbin:
Secure temp:

Could you point me to the merchant.pm file that you were speaking of?
Perhaps email it to me or a diff of the old/new version?

The client does not have root access to their hosting server. You might have such access since from my undrestanding your company set up hosting and installed NetAuction for them, but I doubt it should be needed. Compiling anything is out since the hosting setup does not appear to include shell access. Have you dealt with this problem before?

I realize this is a 3rd party interface, but given that I've been using linux for over 10 years and have been involved in a dozen ecommerce projects this should be workable with a small amount of help from you. Linkpoint is new to me, but I've used other payment gateways.
Do you have documentation about this portion of your code?

Thank you for your assistance
jdaustin Reply #: 11 Posted on: 07-06-08 05:27 AM
Found issue

Looking at your code in the existing merchant.pm, I see that it uses 2 perl modules:
Business::OnlinePayment
Business::OnlinePayment::LinkPoint

The client had the first module installed but not the second.

A more meaningful error message than the following would have made this issue obvious:

Payment Error:

Credit card processing error.
Please go back and check your credit card information.



How does one turn on more verbose error messages for this sort of thing?

It would be useful for the end user to get a meaningful error from the since the above error would not lead to any clue to the cause of the failure.

Thank you for your help!

JD
mewsoft Reply #: 12 Posted on: 07-06-08 10:56 AM
Re: Linkpoint Question

The first module is just the base class for diferent merchants modules, the second module is the one that only works for that merchant Linkpoint, so it has to be installed from their site.

Mewsoft Support
www.mewsoft.com

jdaustin Reply #: 13 Posted on: 07-10-08 11:52 PM
linkpoint

I got linkpoint to work by creating my own linkpoint function.
To help others stuck on this here's what I did:
Download the linkpoint api, put the llpperl.pm file in the same directory as merchant.pm.
change include to include it.
In admin change billing setup to use Linkpoint, set correct path to pem file and set store number.
Add following function, and change process_payment to use it for Linkpoint.
I don't have it passing address info, so address verification isn't active.

#==========================================================
sub Process_LinkPoint_New{
#Added by JD Austin
#use lpperl;
my (%Customer) = @_;
my $lperl = new LPPERL();

# Build transaction hash
$myorder = {
host => 'secure.linkpt.net',
port => '1129',
keyfile => $Global{LinkPoint_Keyfile} , #change this to the name and location of your certificate file
configfile => $Global{LinkPoint_StoreNumber}, #change this to your store number
# type => $Customer{CC_Type},
# action => 'Normal Authorization',
description => $Customer{Description},
# amount => $Customer{Amount}, # total order amount
# first_name => $Customer{First_Name},
# last_name => $Customer{Last_Name},
# name => $Customer{Name_On_Card},
# address => $Customer{Street_Address}, # billing address
# city => $Customer{City}, # billing address city
# state => $Customer{State}, # billing address state/province
# zip => $Customer{Zip}, # billing address zip/postal code
# country => $Customer{Country}, # billing address country
# email => $Customer{Email}, # billing contact's email
ordertype => 'SALE',
result => 'GOOD', # For a test, set result to GOOD, DECLINE, or DUPLICATE
chargetotal => $Customer{Amount},
cardnumber => &Decrypt($Customer{CC_Number}, $Global{Secure_Key}),
cardexpmonth => $Customer{Exp_Month},
cardexpyear => $Customer{Exp_Year},
cpath => '/usr/bin/curl', # *NIX

# FIELD NAME: cargs - Curl Arguments
# DEFAULT VALUE: '-m 300 -s -S' -m = timeout value (seconds), -s = silent, -S = show errors
# EXPLANATION: Curl arguments - You need to enter the complete string if you over-ride the default.
# For more info see http://curl.haxx.se/docs/manpage.html.
# This field can normally be omitted.
# EXAMPLE USAGE:
cargs => '-k -m 300 -s -S',

# FIELD NAME: debugging
# DEFAULT VALUE: false
# EXPLANATION: Prints values as they are processed by module. It also turns on verbose curl output
# Debugging is for development only - not intended for production use
# EXAMPLE USAGE:
debugging => 'false',

# FIELD NAME: webspace
# DEFAULT VALUE: true
# EXPLANATION: When viewing perl output through a web browser, all xml tags are
# removed, so we must escape them to view xml output. This is on
# by default. If running perl from the command line (or not through a
# browser), set this value to false. Otherwise this field is not needed.
# EXAMPLE USAGE:
webspace => 'false',

};
%response = $lperl->curl_process($myorder);

my ($Status, $Reason, $AVS, $Auth_Code, $Trans_ID);
$Status=$response{'r_approved'};
$Reason=$response{'r_error'};
$AVS=$response{'r_avs'};
$Auth_Code=$response{'r_code'};
$Trans_ID=$response{'r_ref'};

if ($response{'r_approved'} eq "APPROVED")
{
return (1, $Reason, $AVS, $Auth_Code, $Trans_ID);
}
else
{
$Reason.=" <!-- ";
while (($key, $value)=each(%Customer)) {$Reason.=">> $key = $value << ";}
$Reason.=" --> ";
return (0, $Reason, $AVS, $Auth_Code, $Trans_ID);
}

} #end Process_LinkPoint_New