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.