Skip to content

Commit

Permalink
Release 3.16.1 (#529)
Browse files Browse the repository at this point in the history
* [ECP-9382-v3] Include holderName in recurring payment requests (#527)

* [ECP-9382-v3] Add holderName to OneClick payment requests

* [ECP-9382-v3] Make cardholder name required

---------

Co-authored-by: Can Demiralp <[email protected]>

* Prepare 3.16.1 (#530)

* Replace nullish coalescing operator

* Shopware 6.4 frontend asset

* Version bump

* Shopware 6.5 frontend assets

---------

Co-authored-by: Can Demiralp <[email protected]>

---------

Co-authored-by: Can Demiralp <[email protected]>
  • Loading branch information
candemiralp and Can Demiralp authored Aug 12, 2024
1 parent f452054 commit 952c1c9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"description": "Official Shopware 6 Plugin to connect to Payment Service Provider Adyen",
"version": "3.16.0",
"version": "3.16.1",
"type": "shopware-platform-plugin",
"license": "MIT",
"require": {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default class ConfirmOrderPlugin extends Plugin {
paymentMethodsConfiguration: {
card: {
hasHolderName: true,
holderNameRequired: true,
clickToPayConfiguration: {
merchantDisplayName: merchantAccount,
shopperEmail: shopperDetails.shopperEmail
Expand Down Expand Up @@ -521,6 +522,10 @@ export default class ConfirmOrderPlugin extends Plugin {
},
onSubmit: function(state, component) {
if (state.isValid) {
if (isOneClick && typeof paymentMethod.holderName !== "undefined") {
state.data.paymentMethod.holderName = paymentMethod.holderName;
}

let extraParams = {
stateData: JSON.stringify(state.data)
};
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 952c1c9

Please sign in to comment.