@@ 143-151 (lines=9) @@ | ||
140 | * |
|
141 | * @return bool |
|
142 | */ |
|
143 | public function canShowPaymentHintText() |
|
144 | { |
|
145 | if ((bool)$this->getConfigParam('enabled', 'creditrating', 'payone_protect') |
|
146 | && (bool)$this->getConfigParam('payment_hint_enabled', 'creditrating', 'payone_protect') |
|
147 | && $this->getConfigParam('integration_event', 'creditrating', 'payone_protect') == 'after_payment') { |
|
148 | return true; |
|
149 | } |
|
150 | return false; |
|
151 | } |
|
152 | ||
153 | /** |
|
154 | * Return if the consumerscore agreement message has to be shown on payment selection |
|
@@ 158-166 (lines=9) @@ | ||
155 | * |
|
156 | * @return bool |
|
157 | */ |
|
158 | public function canShowAgreementMessage() |
|
159 | { |
|
160 | if ((bool)$this->getConfigParam('enabled', 'creditrating', 'payone_protect') |
|
161 | && (bool)$this->getConfigParam('agreement_enabled', 'creditrating', 'payone_protect') |
|
162 | && $this->getConfigParam('integration_event', 'creditrating', 'payone_protect') == 'after_payment') { |
|
163 | return true; |
|
164 | } |
|
165 | return false; |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * Get worst score |