senangPay payment gateway plugin for OpenCart. This plugin enable online payment using credit or debit cards (Visa and Mastercard only) and online banking (for Malaysian banks only). Currently senangPay is only available for businesses that reside in Malaysia.
For OpenCart 3.0 and 2.3 only
If this is your first time installing the extension, please start at Step 3. If you have previously downloaded the extension for OpenCart 2.3.x dated 14th April 2017 and before that, please follow Step 1 and Step 2 first to remove the previous version.
*This method requires you to upload manually each file to each respective folder accordingly
1) Uninstall the SenangPay extension from your OpenCart admin section if you already have it installed.
2) Removed all the files that have been uploaded related to the previous version of our extension. Below is the list of files from our previous extensions. You may remove the folder these files contained in if there is no other files exists within those folders.
Previous File List of SenangPay OpenCart 2.3.x Extension
3) Download and extract the extension. There should be 2 folders, ‘admin’ and ‘catalog’.
4) Please copy both folders admin and catalog in the upload directory into your OpenCart directory.
5) Take note that the plugin default files are for language en-gb and the default template. If you are using different language and template then please copy the files to the appropriate language and template directory.
6) In OpenCart administration go to Extensions and from the dropdown of extension categories, please choose ‘Payments’.
7) Install the senangPay extension.
8) Edit senangPay extension. Key in:
* Your merchant ID - (can be obtained from your senangPay Profile page)
For OpenCart 3.0.x Extension v0.1.1
* Your secret key - (can be obtained from your senangPay Profile page)
* The order status after successful payment (usually ‘Processed’)
* Sort order - the number for the order of payment method (can be left blank)
* Status to enable
, there is an additional fields that should be filled in:
*Hash Type- (can be obtained from your senangPay Profile page)
*Environment Mode - (depends on what environment you want to use : Sandbox / Live)
9) Press save. The notice 'You have successfully modified senangPay setting.’ should be displayed.
10) In senangPay Dashboard, key in your return URL as http://yourwebstore.com/?route=extension/payment/senangpay/callback&
11) Set the callback URL as http://yourwebstore.com/?route=extension/payment/senangpay/callback_response&
12) For callback response choose 'Ignore the response'.
13) All set and ready
For OpenCart 2.0 to 2.2 only
1. Make sure that you have OpenCart version 2.0 until 2.2.
2. Please copy both folders admin and catalog in the upload directory into your OpenCart directory.
3. In OpenCart administration go to Extensions > Payments.
4. Enable senangPay extension.
5. Edit senangPay extension. Key in your merchant ID, secret key, the order status after successful payment and set the status to enable. Press save.
6. In senangPay Dashboard, key in your return URL as http://yourwebstore.com/?route=payment/senangpay/callback&
7.Leave the callback and return URL parameters empty.
If you are getting error such as below.
Notice: Error: Could not load template /home/xxxxx/public_html/xxxxx/catalog/view/theme/xxxxx/payment/senangpay.tpl! in /home/xxxxx/public_html/xxxxx/system/storage/modification/system/engine/loader.php on line 86
Please create a directory called 'payment' in location catalog/view/theme/your_theme and copy files senangpay.tpl and senangpay_failed.tpl to the directory.