Fix typo in element id

This commit is contained in:
dinamiko 2021-11-24 16:10:24 +01:00
parent 1e646fa954
commit 31f2e65bff

View file

@ -199,7 +199,7 @@ class CreditCardRenderer {
hostedFieldsData.cardholderName = this.defaultConfig.payer.given_name + ' ' + this.defaultConfig.payer.surname;
}
if (!hostedFieldsData.cardholderName) {
const firstName = document.getElementById('foo_billing_first_name') ? document.getElementById('foo_billing_first_name').value : '';
const firstName = document.getElementById('billing_first_name') ? document.getElementById('billing_first_name').value : '';
const last = document.getElementById('billing_last_name') ? document.getElementById('billing_last_name').value : '';
if (!firstName || !lastName) {