/**
  * Check that the bank information is the same in the two services.
  *
  * @param VendorInterface $vendor
  * @param BankInfo        $miraklBankInfo
  *
  * @return bool
  */
 protected function isBankInfosSynchronised(VendorInterface $vendor, BankInfo $miraklBankInfo)
 {
     $hipayBankInfo = $this->getBankInfo($vendor);
     $event = new CheckBankInfos($miraklBankInfo, $hipayBankInfo);
     $ibanCheck = $hipayBankInfo->getIban() == $miraklBankInfo->getIban();
     $this->dispatcher->dispatch('check.bankInfos.synchronicity', $event);
     return $ibanCheck && $event->isSynchrony();
 }