-
Notifications
You must be signed in to change notification settings - Fork 2
CS Cart Version 4.10.x
-
Download this plugin (right-click, save as) [version 4.10.x.zip] (https://github.com/RazerMS/CSCart_Plugin/blob/master/version4.10.x/CSCart_version4.10.x.zip), Extract/Unzip the files.
-
Upload or copy those file and folder into your CS-Cart root folder
-
(Skip this if your CS-Cart is not hosted in UNIX environment). Please ensure the file permission is correct. It's recommended to CHMOD to 644
-
Go to any browser (Mozilla, Google Chrome, Internet Explorer, etc), copy and paste the URL shown below into address bar on your browser. (The purpose of this action is to register MOLPay Payment plugin into the database).
http://www.your-cscart.com/index.php?dispatch=molpay.setup
***Replace
www.your-cscart.com
with URL address of your shopping cart.
Attention :
Since CS-Cart Version 4.1.5 have a skey
conflict with system parameter, then please add this snippet && empty($_REQUEST['domain']) && empty($_REQUEST['currency']) into your cscart root folder (app
/controllers
/frontend
/init.php
)
Instruction
-
Open file
init.php
then find if(!empty($_REQUEST['skey'])) on line 26. -
Find this snippet code if(!empty($_REQUEST['skey'])) {
-
Replace with this code and the result will be like this :
if(!empty($_REQUEST['skey']) && empty($_REQUEST['domain']) && empty($_REQUEST['currency'])) {
-
Login as CS-Cart Store Admin, go to
Administration
>Payment Methods
. -
Click
Add Payment
to create new payment method. -
Refer to the datail below, kindly insert details into the respective fields:
- Name: MOLPay
- Processor: select "MOLPay Malaysia Online Payment"
- Template:(optional)
- Payment Category: Internet Payments
- Another fields is optional
-
Click on
[Configure]
tab on the right to enter your MOLPay Merchant Id & Verify key. -
Fill in the details accordingly:
- Merchant ID : Your MOLPay Merchant ID
- Verify Key : Your MOLPay Verify key. Check your merchant profile to have this key.
-
Click on
[Create]
button on the bottom to save all changes. -
Save all the changes. You’re Done!
-
Go to MOLPay Merchant Portal.
-
Click Transaction > Transaction Settings > Endpoint setting.
-
Fill in return URL and Callback URL with your shopping cart URL.
- Return URL : http://xxxxxxxxxxxxxx/?dispatch=payment_notification.return&payment=molpay
- Notification URL : http://xxxxxxxxxxxxxx/?dispatch=payment_notification.notification&payment=molpay
- Callback URL : http://xxxxxxxxxxxxxx/?dispatch=payment_notification.callback&payment=molpay
_ *Replace xxxxxxxxxxxxxx with your shoppingcart domain_
-
Save the configuration and done!