Toll Free: (844) 566-6525 | Toronto: (647) 689-2440

Joomla Blog, Tips & News

Authorize.net Plugin Bug in RS Form Pro

Written by Jacob Hodara on .

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.

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.

Call toll free (844) 566-6525 or email us for a no obligation review of your project