Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LinkPoint Error Message Display Fix


DriWashSolutions

Recommended Posts

Well, after I got my store back up and running after the LinkPoint Migration, I started looking into why LinkPoint transaction errors are not being shown.

 

As far as I can tell, ANYONE that is using the latest LinkPoint API contribution from Clifton Murphy is having this problem. To fix it, do the following:

 

Look for LINKPOINTMS1.PHP in your /catalog/includes/modules/payments folder. Open the file for editing and look for the following code, near line 284.

 

#	Returns:  statusCode 1 if successful, 0 or -1 if not
#    statusMessage An error message if an error occurred
#    AVSCode The AVS code returned by the transaction
#    trackingID An ID for tracking the order with the gateway
#	I STILL NEED TO SAVE THESE VALUES INTO THE DATABASE

 

replace the next four lines (the IF statement) with the following:

 

         if ($myresult["statusCode"] != '1') {
       tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . '&error=' . urlencode(MODULE_PAYMENT_LINKPOINTMS1_TEXT_ERROR_MESSAGE) . ': ' . $myresult["statusMessage"], 'SSL', true, false));
     }
   }

 

Now, when your users encounter a "declined" message from LinkPoint, it will automatically be displayed at the top of the "checkout_payment" page that they get returned to.

 

Enjoy.

John Skurka

Link to comment
Share on other sites

As far as I can tell, ANYONE that is using the latest LinkPoint API contribution from Clifton Murphy is having this problem.

 

UPDATE: That is only if you are using the CC_VALIDATION contrib in conjunction with the LinkPoint API.

John Skurka

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...