Windows Com Object API

NOTE: If your web site is hosted by GoDaddy you will NOT be able to use LinkPoint API because they block port 1129. You can try to contact Godaddy to see if they will unblock this port otherwise you will have to use the Connect option.

Before you begin using LinkPoint API you will also need to download the PEM file.
NOTE: The LinkPoint PEM can not be installed on the web server as a SSL certificate.
  1. Log into LinkPoint Central
  2. Click on Support on the top menu.
  3. On the left menu click on Download Center
  4. Click on Download PEM
  5. Save the file to your desktop
  6. Upload the PEM file to the root of your web site or any other folder.
    If your web site is on a UNIX server you need to make sure you upload the file in ASCII (text) format.

WINDOWS COM OBJECT
REQUIREMENTS:
OpenSSL
The WINDOWS COM OBJECT requires you have server access to install a DLL.
If you are on a shared hosting environment then you may not be able to use the COM OBJECT.
Port 1129 must be open on the web server. Contact your web host to verify.
Must have a SSL certificate or a shared SSL (secure server).
  1. Download the Windows COM Object
    NOTE: The version of OpenSSL integrated into COM Object 3.0.17 is not the latest one.
    You can download version 3.0.15 instead and install Open SSL separately.
  2. Upload LpiCom_6_0.dll to the system32 directory (C:\windows\system32)
  3. Register the DLL file
    1. Click on Start
    2. Click on Run
    3. Type cmd then click OK
    4. At the dos prompt window type in the following command:
      regsvr32 c:\windows\system32\lpicom_6_0.dll
    5. If you make a mistake you will need to unregister the DLL file with the following command:
      regsvr32 /u c:\windows\system32\lpicom_6_0.dll

  4. If you downloaded COM Object version 3.0.15 (30015_lcom.zip) then you will also need to install 2 files into the web server for OpenSSL.
    You can download and install OpenSSL on your local computer then copy the 2 files from your system32 directory. You do not need to register these files, just place them in the system32 directory on the web server.
    libeay32.dll
    ssleay32.dll
    http://www.slproweb.com/products/Win32OpenSSL.html


  5. You may also need to restart IIS.
    At the dos prompt window type the following command:
    iisreset


  6. Upload one of the exampe files such as SALE_MININFO.asp
  7. Also upload the corresponding VB file, SALE_MININFO.vb
  8. In order to use one of the example files, you will need to upload the following files into the same directory.
    status.asp
    status.vb
    common.inc
    config.inc


  9. Edit the config.inc file and change the following 2 lines:
    CODE
    Const configfile = "YOURSTORE"
    Const keyfile = "YOURPEMFILE"

  10. Make sure you replace 123456 with your LinkPoint store number:
    CODE
    Const configfile = "123456"
    Const keyfile = "c:\inetpub\wwwroot\linkpoint\123456.pem"
    SGS-020003: Invalid XML

    If you modified one of the example files and get the Invalid XML error you should see a "Show Request XML" link on the transaction result page. Click on the link to view the XML output. You may need to copy and email the XML code to LinkPoint support.
    TRANSACTION RESULT
     SSL API Version:   LCOM API v. 3.0.017 April 2005
      Time:   Thu Aug 3 17:13:42 2006
      Approval:   DECLINED
      Error:   SGS-000001: D:Declined:XXUX:
      Order number:   CDA78C0B-44D28324-697-1227B2
      Message:   DECLINED

    If you are not using the example files then you will need to follow these steps:
    1. Create a file named log.txt
    2. Enable read and write permissions for all users on the log file
    3. Edit the config.inc file and make the following changes:
    4. CODE
      Const logLvl = 2
      Const logFile = "c:\inetpub\wwwroot\log.txt"

    5. Enter another transaction/order
    You may need to email the log file to LinkPoint Support