mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Remove getting shipping address as fallback for card holder name
This commit is contained in:
parent
cf3ba3f55c
commit
26147791ab
1 changed files with 2 additions and 6 deletions
|
@ -199,12 +199,8 @@ class CreditCardRenderer {
|
|||
hostedFieldsData.cardholderName = this.defaultConfig.payer.given_name + ' ' + this.defaultConfig.payer.surname;
|
||||
}
|
||||
if (!hostedFieldsData.cardholderName) {
|
||||
const firstName = document.getElementById('billing_first_name') ? document.getElementById('billing_first_name').value
|
||||
: document.getElementById('shipping_first_name') ? document.getElementById('shipping_first_name').value
|
||||
: '';
|
||||
const lastName = document.getElementById('billing_last_name') ? document.getElementById('billing_last_name').value
|
||||
: document.getElementById('shipping_last_name') ? document.getElementById('shipping_last_name').value
|
||||
: '';
|
||||
const firstName = document.getElementById('billing_first_name') ? document.getElementById('billing_first_name').value : '';
|
||||
const lastName = document.getElementById('billing_last_name') ? document.getElementById('billing_last_name').value : '';
|
||||
|
||||
if (!firstName || !lastName) {
|
||||
this.spinner.unblock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue