| @@ 78-85 (lines=8) @@ | ||
| 75 | * |
|
| 76 | * @return bool |
|
| 77 | */ |
|
| 78 | public function customerHasGivenGender() |
|
| 79 | { |
|
| 80 | $oCustomer = $this->checkoutSession->getQuote()->getCustomer(); |
|
| 81 | if ($oCustomer && $oCustomer->getGender()) { |
|
| 82 | return true; |
|
| 83 | } |
|
| 84 | return false; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Determine if the customer entered his birthday |
|
| @@ 92-99 (lines=8) @@ | ||
| 89 | * |
|
| 90 | * @return bool |
|
| 91 | */ |
|
| 92 | public function customerHasGivenBirthday() |
|
| 93 | { |
|
| 94 | $oCustomer = $this->checkoutSession->getQuote()->getCustomer(); |
|
| 95 | if ($oCustomer && $oCustomer->getDob()) { |
|
| 96 | return true; |
|
| 97 | } |
|
| 98 | return false; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * Get the region object for the state and country given by PayPal |
|