Skip to content

Commit

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

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

---------

Co-authored-by: Can Demiralp <[email protected]>
  • Loading branch information
candemiralp and Can Demiralp authored Aug 2, 2024
1 parent d058882 commit 5875aca
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 5875aca

Please sign in to comment.