Skip to content

Commit

Permalink
[ECP-9382] Include holderName in recurring payment requests (#526)
Browse files Browse the repository at this point in the history
* [ECP-9382] Add holderName to recurring card payment requests

* [ECP-9382] Update frontend files

* [ECP-9382] Add holderName conditionally

* [ECP-9382] Make cardholder name required

* [ECP-9382] Update frontend assets

---------

Co-authored-by: Can Demiralp <[email protected]>
  • Loading branch information
candemiralp and Can Demiralp authored Aug 2, 2024
1 parent 3a296d0 commit 47989cb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.

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) {
state.data.paymentMethod.holderName = paymentMethod.holderName ?? '';
}

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

0 comments on commit 47989cb

Please sign in to comment.