- Integrate The New Maybank2u Pay with Popular E-Commerce WooCommerce.
- Please note that this Repository will not be supported & updated.
- PHP 5.6 & 7.0. PHP 7.1 and newer version are not supported due to Maybank SDK issues.
- Mod Rewrite Enabled
- SSL/TLS Enabled
- CloudFlare/Any Reverse Proxy Services Are Not Supported. If the domain is behind CloudFlare, install it on Subdomain and turn off CloudFlare for the Subdomain or use Page Rule to exclude specific directory from CloudFlare.
You need 2 Installation. The first one is for "The System" to be installed and the second one is for Integration with WooCommerce.
For "The System", you may need to have 2 separate installation directory/subdomain for User Acceptance Test and Production.
- Download this repository
- Create database and import m2u.sql
- Configure config.php
- Copy all files in folder M2U-Pay-API to your public facing directory
- Done
Below is recommended value:
- DB Server: localhost
- DB Port: 3306
- DB Name: Your Database Name
- DB Prefix: m2u_
- DB Username: Your Database Username
- DB Password: Your Database Password
- System URL: https://yourdomain.com/ (Must end with trailing slash "/")
- Development Mode: false
- Signature: Any Random Character (Low-Case)
- Payee Code: (Refer Maybank2u Pay Site)
- Mode:
- UAT - for User Acceptance Test
- PRODUCTION - for Production Use
- Callback ID: Any Random Character (Low-Case)
- Bill ID Length: 8
- Bill Expiry: 10 (for 10 Minutes)
- Download this repository
- Upload the folder m2upay-for-woocommerce to wp-content/plugins folder
- Activate plugin
- Done
- Endpoint URL: Same with System URL
- Signature: Same with Signature
-
Make sure you provide VALID SSL/TLS Certificate
-
Callback URL: SYSTEM URL callback/ Callback ID
-
Example:
https://yourdomain.com/callback/eeffgghhhii
- You may have 2 Installation for both UAT and Production
- Wait until you get Payee Code UAT code and update on config.php file
- Once done, **try to make a payment **using on your configured WooCommerce site.
- Inform them **if **the payment is success
- Wait for the Production Payee Code
- In-case you installed "The System" two times (1 for UAT, 1 for Production), then, you need to update the Production Payee Code and update the Endpoint URL on WooCommerce M2uPay Settings
- Otherwise, update the Payee Code on "The System"
- Enjoy!