If the user has no saved cards, getSelectedSavedCardPan() will return undefined, causing the condition in line 71 to become true.
getSelectedCardholder() will return false if the user has no saved card selected, overwriting the actual cardholder value from the form with an incorrect value.
I've fixed this by including a check for useSaveDataMode(), which returns false if user has no saved cards yet.
This fixes https://github.com/PAYONE-GmbH/magento-2/issues/428
If the user has no saved cards, getSelectedSavedCardPan() will return undefined, causing the condition in line 71 to become true.
getSelectedCardholder() will return false if the user has no saved card selected, overwriting the actual cardholder value from the form with an incorrect value.
I've fixed this by including a check for useSaveDataMode(), which returns false if user has no saved cards yet.