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