Skip to content

Commit

Permalink
Implemented a feature to enable or disable debug logging. All communi…
Browse files Browse the repository at this point in the history
…cation data is encrypted and stored in a log file, Implemented the ability to process void transactions, Implemented the ability to add mandatory or optional extra fees on the checkout page & Fixed the compatibility issue with the WooCommerce Subscription plugin
  • Loading branch information
jineshpv committed Oct 1, 2024
1 parent d137285 commit f4020de
Show file tree
Hide file tree
Showing 11 changed files with 480 additions and 128 deletions.
24 changes: 9 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog
All notable changes to this project will be documented in this file.

## [2.4.3] - 2024-10-01
### Added
- Implemented a feature to enable or disable debug logging. All communication data is encrypted and stored in a log file.
- Implemented the ability to process void transactions.
- Implemented the ability to add mandatory or optional extra fees on the checkout page.
### Fixed
- Fixed the compatibility issue with the WooCommerce Subscription plugin.

## [2.4.2] - 2024-05-06
### Added
- Implemented a notification feature to alert the WordPress administrator whenever a new version is launched on GitHub.
Expand All @@ -26,12 +34,10 @@ All notable changes to this project will be documented in this file.
### Fixed
- “Amount mismatch” error is triggered when a user purchases a product on recent versions of WooCommerce (WordPress 5.9.3 / Woocommerce 6.4.1)


## [2.3.1] - 2021-12-01
### Fixed
- Fixed a "false" Transaction Description issue that happened for some types of transactions


## [2.3.0] - 2021-10-19
### Changed
- Add Embedded Payment Option
Expand All @@ -43,67 +49,55 @@ All notable changes to this project will be documented in this file.
- It's impossible to Refund the Payment if the plugin works in the Authorization Mode
- Fix the issue with text transformation while save the settings


## [2.2.0] - 2021-01-29

## [2.1.2] - 2021-01-14
### Fixed
- Fixing an issue where performing a partial refund through woocommerce will instead refund the full amount.


## [2.1.1]
### Fixed
- Patch to allow for non-latin (e.g. Greek or Arabic) characters in the checkout


## [2.1.0]
### Changed
- Added support for transaction modes, Payment and Authorization
- Added capture and reverse capability


## [2.0.0]
### Changed
- Standard integration has been removed
- Compatibility with Wordpress 5.2 and WooCommerce 3.6


## [1.4.3]
### Fixed
- Fix issue with amounts off by 1c.


## [1.4.2]
### Changed
- Adding Qatar to the supported countries list


## [1.4.1]
### Fixed
- Using hash_equals in return_handler helps prevent timing attacks.


## [1.4.0]
### Changed
- Display supported card types set by merchant


## [1.3.0]
### Changed
- Save hosted payment for subscription


## [1.2.0]
### Changed
- Adding "Australia" to the supported countries list
- Pass currency code in Hosted Payments args


## [1.1.0]
### Fixed
- Fix the card on file not working for subscription payment


## [1.0.0]
### Changed
- First version
- First version
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
all :
git archive HEAD --prefix=simplify-woocommerce-mastercard/ -o ./simplify-woocommerce-mastercard.zip &&\
echo "\nCreated simplify-woocommerce-mastercard.zip\n"
git archive HEAD --prefix=simplifycommerce/ -o ./woocommerce-simplifycommerce.zip &&\
echo "\nCreated woocommerce-simplifycommerce.zip\n"
46 changes: 5 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Simplify Commerce Payment Gateway for WooCommerce

The Simplify Commerce payment gateway plugin for WooCommerce 7.6+ lets you to take card payments directly on your WooCommerce store.
<p align="center" style="margin-top: 25px;">
<a href="https://www.fingent.com/"><img alt="Fingent logo" height="50px" src="https://www.fingent.com/wp-content/uploads/Fingent-Logo-01.png"/></a>&nbsp;&nbsp;<img alt="MC logo" height="50px" src="https://www.mastercard.co.in/content/dam/public/mastercardcom/in/en/logos/mc-logo-52.svg"/>
</p>
The Simplify Commerce payment gateway plugin for WooCommerce 7.3+ lets you to take card payments directly on your WooCommerce store.

## Overview Section
<a href="https://www.mastercard.co.in/en-in.html" target="_blank">Mastercard Inc.</a> is the second-largest payment-processing corporation worldwide. It offers a range of payment transaction processing and other related payment services. By connecting individuals, businesses, and organizations in more than 210 countries and territories today, we're unlocking opportunities for more people in more places for generations. This WooCommerce module adds different payment methods to the WooCommerce checkout, enabling credit and debit card payments to be accepted securely on your WooCommerce-powered website.

Payments through this module are processed securely via the Mastercard Payment Gateway. This ensures that card data is managed in compliance with all legal requirements. The gateway monitors every transaction and handles sensitive payment data on PCI Level 1 certified servers, simplifying PCI compliance for your business.
The Standard payment form in some of the previous releases is now deprecated and out of support.

## Support

Expand All @@ -24,42 +18,12 @@ For any issues or enhancement requests you have with this plugin, please raise t

**Minimum Requirements**

* WooCommerce 7.6 or greater
* WooCommerce 7.3 or greater
* PHP version 7.4 or greater
* cURL

## Compatibility
The module has been tested with the WooCommerce versions:

- 7.6.1
- 7.7.2
- 7.8.0
- 7.9.0
- 8.0.1
- 8.1.1
- 8.2.1
- 8.3.0
- 8.4.1
- 8.5.2
- 8.7.1
- 8.0.0
- 9.0.2
- 9.1.4

The module has been tested with the WordPress versions:

- 5.2.4
- 5.3.2
- 5.6.0
- 5.7.2
- 5.9.1
- 6.0.3
- 6.1.2
- 6.2.2
- 6.3.1
- 6.4.2
- 6.5.2
- 6.6.1
The module has been tested and is supported with the following versions of WooCommerce:
7.3 - 7.7.1

## Documentation
The official documentation for this module is available on: [https://mpgs.fingent.wiki/simplify-commerce/simplify-commerce-payment-gateway-for-woocommerce/getting-started/](https://mpgs.fingent.wiki/simplify-commerce/simplify-commerce-payment-gateway-for-woocommerce/getting-started/)
Expand Down
43 changes: 43 additions & 0 deletions assets/js/mastercard-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,49 @@ jQuery(function ($) {
gateway_url.hide();
}
}).change();

$( '#woocommerce_simplify_commerce_handling_fee_amount' ).before( '<span id="handling_fee_amount_label"></span>' );
$( '#handling_fee_amount_label' ).css({ "width": "35px", "height": "31px", "line-height": "30px", "background-color": "#eaeaea", "text-align": "center", "position": "absolute", "left": "1px", "top": "1px", "border-radius": "3px 0 0 3px" }).parent().css( "position", "relative" );
$( '#woocommerce_simplify_commerce_handling_fee_amount' ).css( "padding-left", "45px" );
if( $( '#woocommerce_simplify_commerce_hf_amount_type' ).val() == 'fixed' ) {
$( '#handling_fee_amount_label' ).html( wcSettings.currency.symbol );
} else {
$( '#handling_fee_amount_label' ).html( '%' );
}

$('#woocommerce_simplify_commerce_hf_amount_type').on('change', function () {
if( $( this ).val() == 'fixed' ) {
$( '#handling_fee_amount_label' ).html( wcSettings.currency.symbol );
} else {
$( '#handling_fee_amount_label' ).html( '%' );
}
}).change();
$( '#woocommerce_simplify_commerce_handling_fee_amount' ).on( 'keypress', function(e) {
var charCode = ( e.which ) ? e.which : e.keyCode;
if ( charCode == 46 || charCode == 8 || charCode == 9 || charCode == 27 || charCode == 13 ||
( charCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) ||
( charCode == 67 && ( e.ctrlKey === true || e.metaKey === true ) ) ||
( charCode == 86 && ( e.ctrlKey === true || e.metaKey === true ) ) ||
( charCode == 88 && ( e.ctrlKey === true || e.metaKey === true ) ) ||
// Allow: home, end, left, right
( charCode >= 35 && charCode <= 39 ) ) {
return;
}

if ( ( charCode < 48 || charCode > 57 ) && charCode !== 46 ) {
e.preventDefault();
}

if ( charCode === 46 && $( this ).val().indexOf( '.' ) !== -1 ) {
e.preventDefault();
}
});
$( '#woocommerce_simplify_commerce_handling_fee_amount' ).on( 'input', function() {
var value = this.value;
if ( !/^\d*\.?\d*$/.test( value ) ) {
this.value = value.substring( 0, value.length - 1 );
}
});
}
};
wc_mastercard_admin.init();
Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
== Simplify - Mastercard Payment Gateway Services Changelog ==

2024-10-01 - version 2.4.3

* Add - Implemented a feature to enable or disable debug logging. All communication data is encrypted and stored in a log file.
* Add - Implemented the ability to process void transactions.
* Add - Implemented the ability to add mandatory or optional extra fees on the checkout page.
* Fix - Fixed the compatibility issue with the WooCommerce Subscription plugin.

2024-05-06 - version 2.4.2

* Add - Implemented a notification feature to alert the WordPress administrator whenever a new version is launched on GitHub.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.4.2",
"version": "2.4.1",
"type": "woocommerce-plugin"
}
Loading

0 comments on commit f4020de

Please sign in to comment.