Add cardholder name field

This commit is contained in:
Emili Castells Guasch 2023-11-14 16:24:02 +01:00
parent 4d56994901
commit adbb799be4
2 changed files with 36 additions and 2 deletions

View file

@ -184,6 +184,11 @@ class CreditCardRenderer {
});
if (cardField.isEligible()) {
const nameFieldContainer = document.getElementById('ppcp-credit-card-gateway-card-name').parentNode;
const nameField = cardField.NameField();
nameField.render(nameFieldContainer);
document.getElementById("ppcp-credit-card-gateway-card-name").remove();
const numberFieldContainer = document.getElementById('ppcp-credit-card-gateway-card-number').parentNode;
const numberField = cardField.NumberField();
numberField.render(numberFieldContainer);