Commonwealth Bank (CommWeb MPGS) - Magento 2
Overview
Commonwealth Bank (Commweb MPGS) - Magento 2 allows you to use CommWeb as a credit card processor through their fully integrated API. By default, this extension supports Visa and MasterCard payments. You can also enable support for American Express, Diners Club, and JCB, which requires additional activation by the Commonwealth Bank.
How to use this extension
CommWeb Payment is a payment service provided by the Commonwealth Bank of Australia that facilitates the payment process of shoppers.
To use this extension, you must have a CommWeb merchant account and the necessary login credentials including the Merchant ID, Operator ID, and Password to access the Merchant Administration (MA) portal
Payment Integration Options
The CommWeb MPGS extension integrates two payment methods, which will be available in the Magento admin panel once the installation is complete:
-
CommWeb (Direct Payment):
Keep your customers on your site throughout the entire checkout process, providing a seamless payment experience. -
CommWeb (Hosted Checkout):
Redirect your customers to a secure payment form during checkout. Once they’ve completed the payment, they will be redirected back to your site.
Key Features
- Support all CommWeb merchants based on MPGS (MasterCard Payment Gateway Services)
- Support 3D-Secure V1, 3D-Secure V2 (EMV 3D Secure) - for Hosted Payment
- Support Credit/Debit Cards
- Secure Checkout Process
- Encrypted the payment credentials
- Capture New Sales
- Authorize and Capture
- Refund Online
- Create Invoice Automatically
- Support SSL Certificate
- Support multiple websites
- Support multiple store views
- Support multiple currencies
- Unlimited domains.
Installation
Create folder structure inside the Magento main folder: app/code/PL/Mpgs/
Extract module files into that folder and execute the following commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
Example

Verify whether the module has been successfully installed. Log in to Magento Admin dashboard and go to Stores > Configuration > Sales > Payment Methods. Settings of the Commonwealth Bank (CommWeb MPGS) module should be there under the name "CommWeb (Direct Payment)" or "CommWeb (Hosted Checkout)"
Configuration steps
Please follow these steps to configure the module:
- Login to Magento Admin dashboard
- Go to Stores > Configuration > Sales > Payment Methods
- Expand OTHER PAYMENT METHODS, then CommWeb - (Direct Payment) or CommWeb - (Hosted Checkout)
- Fill in configuration details as described below
- Click Save Config to store the configuration.
- Follow Magento instructions and clean application cache, to make sure that the new payment method is immediately available in your online store.
Configuration details
- Enabled: should be set to YES to make CommWeb - (Direct Payment) or CommWeb - (Hosted Checkout) available as a payment method on the checkout page
- Title: Name of the payment method displayed on the checkout page
- Merchant Name:
- Merchant ID:
- API Password:
- Gateway Url:
- Debug: Set the option to YES if you want all communication between Magento and the Gateway to be logged into the var/log/pl/mpgs.log file. It usually uses for the Developer to troubleshoot problems if the Payment Method doesn't work.
- Payment Action: determines when the buyer's card will be charged. If you select Payment, the card will be charged immediately. If you select Authorization, the payment will be verified and authorized, but no money will be charged yet. Only when you issue an invoice for the received order will the card be charged.
- Payment from Applicable Countries: countries from which customers are allowed in your online store
- Payment from Specific Countries: This option is available if Payment from Applicable Countries option is set to the Specific Countries mode. It's possible to choose a few countries for whose the Payment Method will be available. The billing address is used to identify the country on the Checkout Page
Test Environment
In case you need to see the live demo of Commonwealth Bank (ComWeb MPGS) - Magento 2 extension, please feel free to contact us or sales@polacin.com
Test credit card numbers
Visa 4005550000000019 - 01/39
MasterCard 5123450000000008 - 01/39
MasterCard 2223000000000007 - 01/39
The test environment approves and declines transactions based on the penny value of the amount sent. For example, a transaction made for the amount of $9.00 or $1.00 is approved because of the .00 penny value
Release Notes
Version 2.3.0
Released on June 21, 2024
- Compatible with CommWeb API version 80 or later
- Added CSP whitelist
- Fixed maximum characters of the address fields
- Fixed PHP deprecated functionality
- Fixed bugs on PHP 8.2
Version 2.1.1
Released on August 12, 2022
- Compatible with API Version 63 or later
Version 2.1.0
Released on July 12, 2022
- Added notification when the new version is available
- Show error message if payment configuration is incorrect
- Stability improvements.
Version 2.0.8
Released on September 3, 2021
- Added parameters for Direct Payment.
Version 2.0.7
Released on May 30, 2021
- Added Authorize and Refund Online for Direct Payment and Hosted Checkout.
- Stability improvements.
Version 2.0.6
Released on December 16, 2020
- Compatible with API Version 56 or later
- Renamed module name
Version 2.0.5
Released on March 19, 2020
- Stability improvements.
- Bugs fixed for Hosted Checkout with Magento 2.3.4
Version 2.0.4
Released on April 19, 2019
- Stability improvements.
- Encrypted API password.
Version 2.0.3
Released on February 20, 2019
- Fixed Offline Refund issue for Hosted Checkout Payment
Version 2.0.2
Released on October 22, 2018
- Bug fixes and stability improvements.
- Added [order.reference]
- Fixed Total Due Issue
Version 2.0.1
Stable version. Released on March 20, 2017
Customer Reviews
-
Excellent and fast response to an urgent issue
Linh quickly checked and resolved the issue with great support. ThanksReview by M A (Posted on 11/4/2023) -
Great support and plugin for CommWeb
Transactions went through successfully. The support team helped me a lot and we've been able to finish all the setup quickly. I recommend it!Review by Andreiserban (Posted on 7/1/2021) -
Excellent support
We had issues installing because of our CBA configuration but Polacin Support helped us every step of the way to make sure the Commweb works properly, he also helped me to create more 20 transactions before making production mode Excellent support!Review by Kristopher Howarth (Posted on 10/9/2019) -
Excellent!
The plugin works great with Mpgs merchant, support is excellent and have been very helpful.
Thanks heapsReview by Tung Nguyen (Posted on 4/23/2019) -
excellent support!
Hi Linh
Thanks for your help, I reset the api key on the merchant side and it is working again now.
Thank you for looking at it so quickly, we really appreciate it – you provide excellent support!
Kind regards,
LiamReview by Yoon Chang Hyun (Posted on 3/9/2019) -
Fantastic Support
I have updated the API password for the Direct Payment and it works. Thank you very much for your help. Your support was fantastic. Strongly recommended.Review by Lachie Taylor (Posted on 3/8/2019) -
Great job on the plugin
I get so happy when I go to buy a Commbank plugin and then see you have made it – done deal. Great job on the plugin.
GrantReview by Grant Rich (Posted on 8/15/2018) -
Work perfectly with Commweb 2.0
I have put credentials from Magento backend and the CommWeb Hosted Checkout integration worked good. I'm happy with the speedy support provided, will highly recommend this extension for all our clients if they need it.Review by William Nguyen (Posted on 6/8/2018) -
Excellent
i purchased the CommBank supports MPGS, very happy with this extension. The support i have received from the developer is quick, great.
I'd definitely recommend the extension.Review by Elvin Beniwal (Posted on 12/11/2017) -
Works great
Works great for us on our development site, going live soon. Support has been fantastic though, recommended.Review by Travis Glazier (Posted on 12/4/2017)
