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 ...@@ -109,6 +109,9 @@ class AdyenHppConfigProvider implements ConfigProviderInterface
] ]
]; ];
$gender = "";
$dob = "";
// get customer // get customer
if ($this->_customerSession->isLoggedIn()) { if ($this->_customerSession->isLoggedIn()) {
...@@ -118,11 +121,10 @@ class AdyenHppConfigProvider implements ConfigProviderInterface ...@@ -118,11 +121,10 @@ class AdyenHppConfigProvider implements ConfigProviderInterface
// format to calendar date // format to calendar date
$dob = $this->_customerSession->getCustomerData()->getDob(); $dob = $this->_customerSession->getCustomerData()->getDob();
$dob = strtotime($dob); if($dob) {
$dob = date('m/d/Y', $dob); $dob = strtotime($dob);
} else { $dob = date('m/d/Y', $dob);
$gender = ""; }
$dob = "";
} }
// add to config // 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