ZenCart is a popular open-source based eCommerce platform. Â Many hosting companies provide ZenCart as an install-able option with their hosting packages or you can download and install the product from the ZenCart website. Â Setting up your ZenCart-based eCommerce website to work with NaviGate is quick and easy. Â And, with the MerchantPlus Starter account, you can offer fully-integrated credit card payments on your own website with no monthly fee. Â Learn more or create your account here (instant signup) and then come back to follow this guide on how to configure the Authorize.net module within ZenCart to work with NaviGate.
Setup Time: 5-10 Minutes
Step 1 - Configure API Settings
First, login to your NaviGate portal, located at https://gateway.merchantplus.com/Â using the login credentials you received when your account was setup. Â Then, quickly browse to the Profile & SettingsÂ section of the gateway interface. Â This is where you'll configure the important bits about getting NaviGate to work with your shopping cart, as well as any email receipts or reports you want to receive via email. Â You should see several sub categories on the left hand menu, but for now you can edit the settings on the main page, including: Â Live/Test Mode, what email receipts are sent FROM, which email to receive administrative settlement reports and if you'd like to send customer receipts. Â Please note: you must still configure email receipts under the sub menu called Email Notifications.
Scroll down to the API SettingsÂ section and click on "Edit". Â Then, ensure the response is set to be delimited. Â We recommend using the pipe (" | ") character as a delimiter and leaving the encapsulation character blank. Â Click to save these settings.
Step 2 - Generate a Transaction Key
After you've configured the API settings of NaviGate, you need to generate a transaction key. Â The transaction key is like a password to be used by your shopping cart when authenticating transactions it is sending to the NaviGate API. Â You can only have one active transaction key at a time, so if you regenerate the transaction key, you'll need to update your ZenCart configuration.
Click to theÂ SecurityÂ sub menu and click on the "edit" button next to the Transaction Key section. Â It will give you the option to generate a new transaction key -- click to generate a new key and then copy the key that NaviGate provides to you. Â You should save it on a notepad or text file while you finish your configuration.
Step 3 - Edit ZenCart's Authorize.net AIM Integration File
Now, for the most complicated part! Â Power up your text editor or code editor of choice. Â You may also have a web-based file editor as part of your hosting control panel, which you can also use. Â Browse to theÂ includes -> modules -> payment directory and open the file called authorizenet_aim.php. Â Please note: there is also a file called "authorizenet.php", ignore this one as it is used for the SIM (Simple Integration Method) and NaviGate supports emulation of the Authorize.net AIM (Advanced Integration Method) mode only. Â Scroll to line 46 or search for the variable "var $delimiter". Â Update it to match the following:
var $delimiter = '|';
Do the same for the delimiter filed right below this section and update it to match the following:
var $encapChar = '';
$url = 'https://gateway.merchantplus.com/cgi-bin/PAWebClient.cgi'; $devurl = 'https://gateway.merchantplus.com/cgi-bin/PAWebClient.cgi'; $dumpurl = 'https://developer.authorize.net/param_dump.asp'; $certurl = 'https://gateway.merchantplus.com/cgi-bin/PAWebClient.cgi';
Save the file and, if necessary, upload it to your hosting account.
Step 4 - Enable and Adjust the Module in ZenCart Admin
The last part of the setup is to enable the module in your ZenCart administration area. Â Login to the ZenCart admin (usually, www.yoursite.com/admin/ or www.yoursite.com/zc_admin/) and then click to Configuration -> Credit Cards section. Â Click to enable the active credit cards you will be offering. Â MerchantPlus sets customers up with Visa, Mastercard, and Discover by default. Â AMEX is generally enabled upon request so please check with us if you have any doubts.
Next, click to theÂ Modules -> PaymentÂ section. Â Click to enable the Authorize.net (AIM) module and then click again to edit the settings for this module. Â You'll need to set the following fields, at a minimum:
- Login ID - This will be your NaviGate username, the same as what you login with in the NaviGate portal (https://gateway.merchantplus.com/)
- Transaction Key - Copy and paste the transaction key that you generated in Step 2. Â Make sure there are no trailing spaces.
- Authorization Type - Choose either Authorize or Authorize+Capture. Â If you choose Authorize, you'll need to manually settle each transaction. Â As long as you fulfill your goods or services quickly, most merchants choose Authorize+Capture.
You should set the rest of the options to your desire, including the order of the payment module and if you want to send transaction emails, etc.
Step 5 - Test it!
You've now done all the necessary steps to activate NaviGate within your ZenCart shopping cart using the Authorize.net AIM payment gateway module. Â You should now test the Â integration thoroughly. Â Our suggestion is to first put the gateway into TEST mode and then use our pre-defined test cards to ensure the configuration is working properly. Â You can view our help guide on testing with NaviGate here. Â Then, put things into LIVE mode (both in NaviGate and the ZenCart module) and test a transaction using a live card. Â You can then login to NaviGate and void the transaction so it doesn't end up settling.
If you have any questions or problems setting up your ZenCart shopping cart installation with your NaviGate or Authorize.net gateway, please simply contact the MerchantPlus support team and we'll be happy to assist you.