/**
  * @return int
  */
 public static function getModCode($flag = false)
 {
     $obj = new BitpayPayments();
     $mod_code = $obj->getCode();
     if ($flag) {
         return $mod_code;
     }
     $search = ModuleQuery::create()->findOneByCode($mod_code);
     return $search->getId();
 }