Skip to content

Commit ac58d37

Browse files
authored
Merge pull request #67 from unzerdev/release/3.2.1
Release/3.2.1
2 parents 17bdd71 + 1d38b7c commit ac58d37

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [3.2.1](https://github.com/unzerdev/magento2/compare/3.2.0..3.2.1)
7+
### Fixed
8+
* missing mandatory cardholder field for cards payment method
9+
610
## [3.2.0](https://github.com/unzerdev/magento2/compare/3.1.0..3.2.0)
711
### Added
812
* TWINT payment method

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unzerdev/magento2",
33
"description": "This extension for Magento 2 provides a direct integration of the Unzer payment types to your Magento 2 shop via the Unzer Payment API (PAPI).",
44
"type": "magento2-module",
5-
"version": "3.2.0",
5+
"version": "3.2.1",
66
"license": "Apache-2.0",
77
"require": {
88
"php": "~7.4.0|~8.1.0|~8.2.0|~8.3.0",

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4-
<module name="Unzer_PAPI" setup_version="3.2.0">
4+
<module name="Unzer_PAPI" setup_version="3.2.1">
55
<sequence>
66
<module name="Magento_Checkout"/>
77
<module name="Magento_Config" />

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ define(
1414
cvc: {valid: null},
1515
expiry: {valid: null},
1616
number: {valid: null},
17+
holder: {valid: null},
1718
},
1819
template: 'Unzer_PAPI/payment/cards'
1920
},
@@ -44,10 +45,15 @@ define(
4445
containerId: 'unzer-card-element-id-cvc',
4546
onlyIframe: false
4647
});
48+
this.resourceProvider.create('holder', {
49+
containerId: 'unzer-card-element-id-holder',
50+
onlyIframe: false
51+
});
4752

4853
this.fields.cvc.valid = ko.observable(false);
4954
this.fields.expiry.valid = ko.observable(false);
5055
this.fields.number.valid = ko.observable(false);
56+
this.fields.holder.valid = ko.observable(false);
5157

5258
this.resourceProvider.addEventListener('change', function (event) {
5359
if ("type" in event) {
@@ -62,7 +68,8 @@ define(
6268
return ko.computed(function () {
6369
return self.fields.cvc.valid() &&
6470
self.fields.expiry.valid() &&
65-
self.fields.number.valid();
71+
self.fields.number.valid() &&
72+
self.fields.holder.valid();
6673
})();
6774
},
6875

view/frontend/web/template/payment/cards.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<div id="unzer-card-element-id-cvc" class="unzerInput"></div>
2929
</div>
3030
</div>
31+
<div class="field">
32+
<div id="unzer-card-element-id-holder" class="unzerInput"></div>
33+
</div>
3134
<!-- ko if: (isVaultEnabled())-->
3235
<div class="field">
3336
<div class="unzerUI checkbox">

0 commit comments

Comments
 (0)