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 279ee778 authored by Giorgos Adam's avatar Giorgos Adam Committed by GitHub

Merge pull request #231 from Adyen/prepopulate-dob

Use empty if customer doesn't have a Date of Birth set
parents 667ad2e0 ec3f2508
......@@ -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();
if($dob) {
$dob = strtotime($dob);
$dob = date('m/d/Y', $dob);
} else {
$gender = "";
$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