Pre-requisites:

Download

Version 0.1

Description

This is a merchant module for the WordPress wp-ecommerce plug-in. It is for Ticket Master’s non-profit payment gateway IATS.

Installation

Download and unpack .zip file.

Have wp-ecommerce already installed as a plug-in on a wordpress installation (see prerequisites).

Copy the iats.php file into the /wp-e-commerce/merchants directory.

Acquire iatslink_php132.zip from IATS.

Copy all the files from the iatslink_php132.zip file provided by IATS to /wp-e-commerce/merchants/library directory.You are now installed. It will not be functioning properly at this point though. There are a few modifications to wp-ecommerce that have to be made for it to be running perfectly.

Edit the /wp-e-commerce/wpsc-includes/checkout.class.php file.

Find the wpsc_gateway_form_fields() Function.

Add the following code to this function. This will provide form validation for the “Payment” section on the checkout page. This code must be added in the switch statement.
[sourcecode language=’php’]
case ‘iatslink’ :
$output = sprintf( $gateway_checkout_form_fields[
$wpsc_gateway->gateway[‘internalname’]] ,
wpsc_the_checkout_CC_validation_class(), $error[‘card_number’],
wpsc_the_checkout_CCexpiry_validation_class(), $error[‘expdate’],
wpsc_the_checkout_CCcvv_validation_class(), $error[‘card_code’],
wpsc_the_checkout_CCtype_validation_class(), $error[‘cctype’]
);
break;[/sourcecode]

You may choose to customize the Checkout form to add credit cards. This is easily done in iats.php. There is a portion of HTML content near the top of the file which is displayed after the normal Checkout page. For a list of possible credit cards see the IATS documentation.

Scott,
I have not maintained or modified this plugin in over a year and I have not maintained it. I also haven’t used wp-ecommerce in a year either so if there have been major changes in the way wp-ecommerce does it’s payment gateways then it may not work. I certainly don’t guarantee that is will but it probably would not take a lot of effort to integrate it with whatever changes have been made to wp-ecommerce. If you have any php experience this should be doable.

I may consider updating it in the future but I have not current plans to do so.