Authorize.net Plugin Bug in RS Form Pro

The Problem

Authorize.net’s API indicates a character limit of 255 characters on the ‘description’ parameter. However, the plugin does not trim the string. This can potentially result in failed transactions.

The issue is only evident if you’re selling multiple products on a single form, and these products have very long names/labels.

{snippet addthis}

The Solution

Download a copy (and backup!) of /public_html/plugins/system/rsfpauthorizenet/rsfpauthorizenet.php

Locate the line:

$vars[‘description’] = implode(‘,’, $products);

Below this line add:

$vars[‘description’] = substr($vars[‘description’], 0, 255);

The above line of code will trim any excess characters. The string will be within the API character limit and your orders should process without errors relating to this field. 

See our Joomla Support packages for help with your Joomla Website’s API.

{snippet joomla}

Suggestive Reads

Newest Reads

Our Top-Rated Services