We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) 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