Skip to content

Commit 143093b

Browse files
Merge pull request #101 from ratepay/M2-130-Mage247-compatibility
M2-130 Mage247 compatibility
2 parents 7710cb4 + 7fdebfb commit 143093b

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
|Repository | Ratepay Module for Magento 2
55
|------|----------
66
|Author | Robert Müller
7-
|Module-Version | `2.1.10`
7+
|Module-Version | `2.1.11`
88
|Compatibility | Magento 2.3.0 - 2.4.x
99
|Link | http://www.ratepay.com
1010
|Mail | integration@ratepay.com
@@ -23,6 +23,11 @@ php bin/magento cache:clean
2323

2424
## Changelog
2525

26+
### Version 2.1.11 - Released 2024-04-19
27+
* Added compatibility for Magento 2.4.7
28+
* Fixed BankTransfer/DirectDebit switch for installments
29+
* Fixed show installment details button for Magento 2.4.7
30+
2631
### Version 2.1.10 - Released 2023-11-10
2732
* Changed DeviceFingerprint handling
2833

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ratepay/magento2-payment",
33
"description": "Official Ratepay Payments Extension for Magento 2",
44
"type": "magento2-module",
5-
"version": "2.1.10",
5+
"version": "2.1.11",
66
"license": "MIT",
77

88
"require": {

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
-->
1010
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
11-
<module name="RatePAY_Payment" setup_version="2.1.10">
11+
<module name="RatePAY_Payment" setup_version="2.1.11">
1212
<sequence>
1313
<module name="Magento_OfflinePayments"/>
1414
</sequence>

view/frontend/web/js/action/installmentplan.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ define([
5656
}
5757
}
5858
$('#' + methodCode + '_ResultContainer').html(response.installment_html);
59+
$('#rp-show-installment-plan-details_' + methodCode).on( "click", function() {
60+
changeDetails(methodCode);
61+
}); // doing it this way since Mage 2.4.7 doesnt allow this inline anymore
62+
$('#rp-hide-installment-plan-details_' + methodCode).on( "click", function() {
63+
changeDetails(methodCode);
64+
}); // doing it this way since Mage 2.4.7 doesnt allow this inline anymore
65+
5966
$('#' + methodCode + '_ContentSwitch').show();
6067
paymentRenderer.setIsInstallmentPlanSet(true);
6168
if (showMessage === true) {

view/frontend/web/js/view/payment/method-renderer/installment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ define(
3737

3838
initialize: function () {
3939
this._super();
40+
41+
this.useDirectDebit = this.isDirectDebitDefault();
42+
4043
if (this.hasAllowedMonths() === false) {
4144
this.updateInstallmentPlan('time', '3', this.getCode(), false);
4245
} else {

view/webapi_rest/templates/checkout/installment_plan.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ $notification = null;
4444

4545
<div class="rp-menue">
4646
<div colspan="2" class="small text-right">
47-
<a class="rp-link" id="rp-show-installment-plan-details_<?php echo $method; ?>" onclick="changeDetails('<?php echo $method; ?>')">
47+
<a class="rp-link" id="rp-show-installment-plan-details_<?php echo $method; ?>">
4848
<?php echo __('Show details'); ?>
4949
<img src="<?php echo $block->getImageUrl('icon-enlarge.png'); ?>" class="rp-details-icon">
5050
</a>
51-
<a class="rp-link" id="rp-hide-installment-plan-details_<?php echo $method; ?>" onclick="changeDetails('<?php echo $method; ?>')">
51+
<a class="rp-link" id="rp-hide-installment-plan-details_<?php echo $method; ?>">
5252
<?php echo __('Hide details'); ?>
5353
<img src="<?php echo $block->getImageUrl('icon-shrink.png'); ?>" class="rp-details-icon">
5454
</a>

0 commit comments

Comments
 (0)