OpenCart 2.3

How to install the OpenCart 2.3 plugin for senangPay.

opencart

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.

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.

A. How to set

1. Uninstall the senangPay extension from your OpenCart admin section if you already have it installed.

2. Remove all the files that have been uploaded relating to the previous version of our extension. Below is the list of files from our previous extensions. You may remove the folder these files are contained in if there are no other files within those folders.

Previous file list of senangPay OpenCart 2.3.x extension:

  • admin/controller/payment/senangpay.php
  • admin/language/english/payment/senangpay.php
  • admin/view/template/payment/senangpay.tpl
  • catalog/controller/payment/senangpay.php
  • catalog/language/english/payment/senangpay.php
  • catalog/model/payment/senangpay.php
  • catalog/view/theme/default/template/payment/senangpay.tpl
  • catalog/view/theme/default/template/payment/senangpay_failed.tpl

3. Download and extract the extension. There should be two 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 page, go to "Extensions" and from the dropdown, choose "Payments".

7. Install the senangPay extension.

8. Edit the senangPay extension. Key in:

  • Your merchant ID (can be obtained from your senangPay Profile page).
  • 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.

9. Press save. The notice "You have successfully modified senangPay setting." should be displayed.

10. In your 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!