We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit ec3f2508 authored by Giorgos Adam's avatar Giorgos Adam

Use empty if customer doesn't have a Date of Birth set

parent 667ad2e0
......@@ -109,6 +109,9 @@ class AdyenHppConfigProvider implements ConfigProviderInterface
]
];
$gender = "";
$dob = "";
// get customer
if ($this->_customerSession->isLoggedIn()) {
......@@ -118,11 +121,10 @@ class AdyenHppConfigProvider implements ConfigProviderInterface
// format to calendar date
$dob = $this->_customerSession->getCustomerData()->getDob();
$dob = strtotime($dob);
$dob = date('m/d/Y', $dob);
} else {
$gender = "";
$dob = "";
if($dob) {
$dob = strtotime($dob);
$dob = date('m/d/Y', $dob);
}
}
// add to config
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment