Skip to content

Commit

Permalink
Merge pull request PAYONE-GmbH#272 from BoulangerV/OX6-151-Fix_SecInv…
Browse files Browse the repository at this point in the history
…oice_validation

OX6-151: Fix SecInvoice birthdate validation
  • Loading branch information
jvarelmann authored Oct 19, 2023
2 parents 520a4c4 + c0f5a1c commit 827342a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extend/application/controllers/fcPayOnePaymentView.php
Original file line number Diff line number Diff line change
Expand Up @@ -2732,9 +2732,9 @@ protected function _fcpoValidateBirthdayData($sPaymentId, $aRequestedValues)
case 'fcpopl_secinstallment':
case 'fcpopl_secdebitnote':
$blB2CMode = ! $this->fcpoIsB2BPov();
$blFieldPresence = isset($aRequestedValues['fcpopl_secinvoice_birthdate_day'])
&& isset($aRequestedValues['fcpopl_secinvoice_birthdate_month'])
&& isset($aRequestedValues['fcpopl_secinvoice_birthdate_year']);
$blFieldPresence = isset($aRequestedValues[$sPaymentId . '_birthdate_day'])
&& isset($aRequestedValues[$sPaymentId . '_birthdate_month'])
&& isset($aRequestedValues[$sPaymentId . '_birthdate_year']);
$blBirthdayRequired = ($blB2CMode || $sPaymentId == 'fcpopl_secinvoice') && $blFieldPresence;
$blValidBirthdateData = $this->_fcpoValidateSecInvoiceBirthdayData($sPaymentId, $aRequestedValues);
break;
Expand Down

0 comments on commit 827342a

Please sign in to comment.