/**
  * Check if 3d secure is enabled
  * @param OrderAdapterInterface $order
  * @param float $amount
  * @return bool
  */
 private function is3DSecureEnabled(OrderAdapterInterface $order, $amount)
 {
     if (!$this->config->isVerify3DSecure() || $amount < $this->config->getThresholdAmount()) {
         return false;
     }
     $billingAddress = $order->getBillingAddress();
     $specificCounties = $this->config->get3DSecureSpecificCountries();
     if (!empty($specificCounties) && !in_array($billingAddress->getCountryId(), $specificCounties)) {
         return false;
     }
     return true;
 }