CFWebstore includes code to handle some of the more popular gateways currently being used. You may find however that you need to add a new gateway to support your customer’s needs. This section will give you some basic information on the pages and sections to modify to add a new gateway.
Add the new gateway to Online Processor selection in the Payment Settings. This is done on the shopping\admin\payment\dsp_cards.cfm page.
Create a new dsp_xxx.cfm page for the settings needed for this processor. You can use one of the existing gateway settings pages as a template for your new page. Generally, this page will have settings for the type of authorization (authorize only or capture funds), test mode, etc.
Add the cfinclude for your new settings page on the dsp_process.cfm page.
Now you are ready to update the checkout section to include your new gateway. The shopping\checkout\creditcards directory contains the custom tags and action pages for running payment gateways. If the gateway does not already have a ColdFusion tag available, you will need to write your own. Depending on the service you are using, you may be able to base the code on an existing tag in the store. The authorizenet30.cfm page for instance is used for AuthorizeNet and sends a form post to the server and receives back a response. Generally the tag will take input such as the customer information, charge amount, card information, etc. and return authorization information or an error information to the calling page.
After creating a tag, you will need to create the action page for the gateway (act_xxx.cfm). This is the page in CFWebstore that retrieves the settings for your gateway, calls the custom tag, and processes the response. You can base your code on any of the existing gateway pages.
After adding your custom tag and action page, you just need to update the checkout section to include the new option. That would be the shopping\checkout\act_pay_form.cfm. Now you’re all ready to process credit cards with your new gateway!