Payment.COUNTRIES = [
  {
    "flag": "https://restcountries.eu/data/afg.svg",
    "name": "Afghanistan",
    "country_code": "AFG",
    "calling_code": "93",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ala.svg",
    "name": "Aland Islands",
    "country_code": "ALA",
    "calling_code": "358",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/alb.svg",
    "name": "Albania",
    "country_code": "ALB",
    "calling_code": "355",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/dza.svg",
    "name": "Algeria",
    "country_code": "DZA",
    "calling_code": "213",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/asm.svg",
    "name": "American Samoa",
    "country_code": "ASM",
    "calling_code": "1684",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/and.svg",
    "name": "Andorra",
    "country_code": "AND",
    "calling_code": "376",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ago.svg",
    "name": "Angola",
    "country_code": "AGO",
    "calling_code": "244",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/aia.svg",
    "name": "Anguilla",
    "country_code": "AIA",
    "calling_code": "1264",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/ata.svg",
    "name": "Antarctica",
    "country_code": "ATA",
    "calling_code": "672",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/atg.svg",
    "name": "Antigua and Barbuda",
    "country_code": "ATG",
    "calling_code": "1268",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/arg.svg",
    "name": "Argentina",
    "country_code": "ARG",
    "calling_code": "54",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/arm.svg",
    "name": "Armenia",
    "country_code": "ARM",
    "calling_code": "374",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/abw.svg",
    "name": "Aruba",
    "country_code": "ABW",
    "calling_code": "297",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/aus.svg",
    "name": "Australia",
    "country_code": "AUS",
    "calling_code": "61",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/aut.svg",
    "name": "Austria",
    "country_code": "AUT",
    "calling_code": "43",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/aze.svg",
    "name": "Azerbaijan",
    "country_code": "AZE",
    "calling_code": "994",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bhs.svg",
    "name": "Bahamas",
    "country_code": "BHS",
    "calling_code": "1242",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/bhr.svg",
    "name": "Bahrain",
    "country_code": "BHR",
    "calling_code": "973",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bgd.svg",
    "name": "Bangladesh",
    "country_code": "BGD",
    "calling_code": "880",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/brb.svg",
    "name": "Barbados",
    "country_code": "BRB",
    "calling_code": "1246",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/blr.svg",
    "name": "Belarus",
    "country_code": "BLR",
    "calling_code": "375",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bel.svg",
    "name": "Belgium",
    "country_code": "BEL",
    "calling_code": "32",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/blz.svg",
    "name": "Belize",
    "country_code": "BLZ",
    "calling_code": "501",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/ben.svg",
    "name": "Benin",
    "country_code": "BEN",
    "calling_code": "229",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bmu.svg",
    "name": "Bermuda",
    "country_code": "BMU",
    "calling_code": "1441",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/btn.svg",
    "name": "Bhutan",
    "country_code": "BTN",
    "calling_code": "975",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bol.svg",
    "name": "Bolivia",
    "country_code": "BOL",
    "calling_code": "591",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/bes.svg",
    "name": "Bonaire, Sint Eustatius and Saba",
    "country_code": "BES",
    "calling_code": "5997",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/bih.svg",
    "name": "Bosnia and Herzegovina",
    "country_code": "BIH",
    "calling_code": "387",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bwa.svg",
    "name": "Botswana",
    "country_code": "BWA",
    "calling_code": "267",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bvt.svg",
    "name": "Bouvet Island",
    "country_code": "BVT",
    "calling_code": "",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bra.svg",
    "name": "Brazil",
    "country_code": "BRA",
    "calling_code": "55",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/iot.svg",
    "name": "British Indian Ocean Territory",
    "country_code": "IOT",
    "calling_code": "246",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/umi.svg",
    "name": "United States Minor Outlying Islands",
    "country_code": "UMI",
    "calling_code": "",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/vgb.svg",
    "name": "Virgin Islands (British)",
    "country_code": "VGB",
    "calling_code": "1284",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/vir.svg",
    "name": "Virgin Islands (U.S.)",
    "country_code": "VIR",
    "calling_code": "1 340",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/brn.svg",
    "name": "Brunei Darussalam",
    "country_code": "BRN",
    "calling_code": "673",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bgr.svg",
    "name": "Bulgaria",
    "country_code": "BGR",
    "calling_code": "359",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bfa.svg",
    "name": "Burkina Faso",
    "country_code": "BFA",
    "calling_code": "226",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/bdi.svg",
    "name": "Burundi",
    "country_code": "BDI",
    "calling_code": "257",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/khm.svg",
    "name": "Cambodia",
    "country_code": "KHM",
    "calling_code": "855",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cmr.svg",
    "name": "Cameroon",
    "country_code": "CMR",
    "calling_code": "237",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/can.svg",
    "name": "Canada",
    "country_code": "CAN",
    "calling_code": "1",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/cpv.svg",
    "name": "Cabo Verde",
    "country_code": "CPV",
    "calling_code": "238",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cym.svg",
    "name": "Cayman Islands",
    "country_code": "CYM",
    "calling_code": "1345",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/caf.svg",
    "name": "Central African Republic",
    "country_code": "CAF",
    "calling_code": "236",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tcd.svg",
    "name": "Chad",
    "country_code": "TCD",
    "calling_code": "235",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/chl.svg",
    "name": "Chile",
    "country_code": "CHL",
    "calling_code": "56",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/chn.svg",
    "name": "China",
    "country_code": "CHN",
    "calling_code": "86",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cxr.svg",
    "name": "Christmas Island",
    "country_code": "CXR",
    "calling_code": "61",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cck.svg",
    "name": "Cocos (Keeling) Islands",
    "country_code": "CCK",
    "calling_code": "61",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/col.svg",
    "name": "Colombia",
    "country_code": "COL",
    "calling_code": "57",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/com.svg",
    "name": "Comoros",
    "country_code": "COM",
    "calling_code": "269",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cog.svg",
    "name": "Congo",
    "country_code": "COG",
    "calling_code": "242",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cod.svg",
    "name": "Congo (Democratic Republic of the)",
    "country_code": "COD",
    "calling_code": "243",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cok.svg",
    "name": "Cook Islands",
    "country_code": "COK",
    "calling_code": "682",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cri.svg",
    "name": "Costa Rica",
    "country_code": "CRI",
    "calling_code": "506",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/hrv.svg",
    "name": "Croatia",
    "country_code": "HRV",
    "calling_code": "385",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cub.svg",
    "name": "Cuba",
    "country_code": "CUB",
    "calling_code": "53",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/cuw.svg",
    "name": "Curaçao",
    "country_code": "CUW",
    "calling_code": "599",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/cyp.svg",
    "name": "Cyprus",
    "country_code": "CYP",
    "calling_code": "357",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/cze.svg",
    "name": "Czech Republic",
    "country_code": "CZE",
    "calling_code": "420",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/dnk.svg",
    "name": "Denmark",
    "country_code": "DNK",
    "calling_code": "45",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/dji.svg",
    "name": "Djibouti",
    "country_code": "DJI",
    "calling_code": "253",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/dma.svg",
    "name": "Dominica",
    "country_code": "DMA",
    "calling_code": "1767",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/dom.svg",
    "name": "Dominican Republic",
    "country_code": "DOM",
    "calling_code": "1809",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/ecu.svg",
    "name": "Ecuador",
    "country_code": "ECU",
    "calling_code": "593",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/egy.svg",
    "name": "Egypt",
    "country_code": "EGY",
    "calling_code": "20",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/slv.svg",
    "name": "El Salvador",
    "country_code": "SLV",
    "calling_code": "503",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/gnq.svg",
    "name": "Equatorial Guinea",
    "country_code": "GNQ",
    "calling_code": "240",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/eri.svg",
    "name": "Eritrea",
    "country_code": "ERI",
    "calling_code": "291",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/est.svg",
    "name": "Estonia",
    "country_code": "EST",
    "calling_code": "372",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/eth.svg",
    "name": "Ethiopia",
    "country_code": "ETH",
    "calling_code": "251",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/flk.svg",
    "name": "Falkland Islands (Malvinas)",
    "country_code": "FLK",
    "calling_code": "500",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/fro.svg",
    "name": "Faroe Islands",
    "country_code": "FRO",
    "calling_code": "298",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/fji.svg",
    "name": "Fiji",
    "country_code": "FJI",
    "calling_code": "679",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/fin.svg",
    "name": "Finland",
    "country_code": "FIN",
    "calling_code": "358",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/fra.svg",
    "name": "France",
    "country_code": "FRA",
    "calling_code": "33",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/guf.svg",
    "name": "French Guiana",
    "country_code": "GUF",
    "calling_code": "594",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/pyf.svg",
    "name": "French Polynesia",
    "country_code": "PYF",
    "calling_code": "689",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/atf.svg",
    "name": "French Southern Territories",
    "country_code": "ATF",
    "calling_code": "",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gab.svg",
    "name": "Gabon",
    "country_code": "GAB",
    "calling_code": "241",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gmb.svg",
    "name": "Gambia",
    "country_code": "GMB",
    "calling_code": "220",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/geo.svg",
    "name": "Georgia",
    "country_code": "GEO",
    "calling_code": "995",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/deu.svg",
    "name": "Germany",
    "country_code": "DEU",
    "calling_code": "49",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gha.svg",
    "name": "Ghana",
    "country_code": "GHA",
    "calling_code": "233",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gib.svg",
    "name": "Gibraltar",
    "country_code": "GIB",
    "calling_code": "350",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/grc.svg",
    "name": "Greece",
    "country_code": "GRC",
    "calling_code": "30",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/grl.svg",
    "name": "Greenland",
    "country_code": "GRL",
    "calling_code": "299",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/grd.svg",
    "name": "Grenada",
    "country_code": "GRD",
    "calling_code": "1473",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/glp.svg",
    "name": "Guadeloupe",
    "country_code": "GLP",
    "calling_code": "590",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/gum.svg",
    "name": "Guam",
    "country_code": "GUM",
    "calling_code": "1671",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gtm.svg",
    "name": "Guatemala",
    "country_code": "GTM",
    "calling_code": "502",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/ggy.svg",
    "name": "Guernsey",
    "country_code": "GGY",
    "calling_code": "44",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gin.svg",
    "name": "Guinea",
    "country_code": "GIN",
    "calling_code": "224",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gnb.svg",
    "name": "Guinea-Bissau",
    "country_code": "GNB",
    "calling_code": "245",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/guy.svg",
    "name": "Guyana",
    "country_code": "GUY",
    "calling_code": "592",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/hti.svg",
    "name": "Haiti",
    "country_code": "HTI",
    "calling_code": "509",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/hmd.svg",
    "name": "Heard Island and McDonald Islands",
    "country_code": "HMD",
    "calling_code": "",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/vat.svg",
    "name": "Holy See",
    "country_code": "VAT",
    "calling_code": "379",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/hnd.svg",
    "name": "Honduras",
    "country_code": "HND",
    "calling_code": "504",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/hkg.svg",
    "name": "Hong Kong",
    "country_code": "HKG",
    "calling_code": "852",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/hun.svg",
    "name": "Hungary",
    "country_code": "HUN",
    "calling_code": "36",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/isl.svg",
    "name": "Iceland",
    "country_code": "ISL",
    "calling_code": "354",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ind.svg",
    "name": "India",
    "country_code": "IND",
    "calling_code": "91",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/idn.svg",
    "name": "Indonesia",
    "country_code": "IDN",
    "calling_code": "62",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/civ.svg",
    "name": "Côte d'Ivoire",
    "country_code": "CIV",
    "calling_code": "225",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/irn.svg",
    "name": "Iran (Islamic Republic of)",
    "country_code": "IRN",
    "calling_code": "98",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/irq.svg",
    "name": "Iraq",
    "country_code": "IRQ",
    "calling_code": "964",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/irl.svg",
    "name": "Ireland",
    "country_code": "IRL",
    "calling_code": "353",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/imn.svg",
    "name": "Isle of Man",
    "country_code": "IMN",
    "calling_code": "44",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/isr.svg",
    "name": "Israel",
    "country_code": "ISR",
    "calling_code": "972",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ita.svg",
    "name": "Italy",
    "country_code": "ITA",
    "calling_code": "39",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/jam.svg",
    "name": "Jamaica",
    "country_code": "JAM",
    "calling_code": "1876",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/jpn.svg",
    "name": "Japan",
    "country_code": "JPN",
    "calling_code": "81",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/jey.svg",
    "name": "Jersey",
    "country_code": "JEY",
    "calling_code": "44",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/jor.svg",
    "name": "Jordan",
    "country_code": "JOR",
    "calling_code": "962",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/kaz.svg",
    "name": "Kazakhstan",
    "country_code": "KAZ",
    "calling_code": "76",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ken.svg",
    "name": "Kenya",
    "country_code": "KEN",
    "calling_code": "254",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/kir.svg",
    "name": "Kiribati",
    "country_code": "KIR",
    "calling_code": "686",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/kwt.svg",
    "name": "Kuwait",
    "country_code": "KWT",
    "calling_code": "965",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/kgz.svg",
    "name": "Kyrgyzstan",
    "country_code": "KGZ",
    "calling_code": "996",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lao.svg",
    "name": "Lao People's Democratic Republic",
    "country_code": "LAO",
    "calling_code": "856",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lva.svg",
    "name": "Latvia",
    "country_code": "LVA",
    "calling_code": "371",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lbn.svg",
    "name": "Lebanon",
    "country_code": "LBN",
    "calling_code": "961",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lso.svg",
    "name": "Lesotho",
    "country_code": "LSO",
    "calling_code": "266",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lbr.svg",
    "name": "Liberia",
    "country_code": "LBR",
    "calling_code": "231",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lby.svg",
    "name": "Libya",
    "country_code": "LBY",
    "calling_code": "218",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lie.svg",
    "name": "Liechtenstein",
    "country_code": "LIE",
    "calling_code": "423",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ltu.svg",
    "name": "Lithuania",
    "country_code": "LTU",
    "calling_code": "370",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lux.svg",
    "name": "Luxembourg",
    "country_code": "LUX",
    "calling_code": "352",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mac.svg",
    "name": "Macao",
    "country_code": "MAC",
    "calling_code": "853",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mkd.svg",
    "name": "Macedonia (the former Yugoslav Republic of)",
    "country_code": "MKD",
    "calling_code": "389",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mdg.svg",
    "name": "Madagascar",
    "country_code": "MDG",
    "calling_code": "261",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mwi.svg",
    "name": "Malawi",
    "country_code": "MWI",
    "calling_code": "265",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mys.svg",
    "name": "Malaysia",
    "country_code": "MYS",
    "calling_code": "60",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mdv.svg",
    "name": "Maldives",
    "country_code": "MDV",
    "calling_code": "960",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mli.svg",
    "name": "Mali",
    "country_code": "MLI",
    "calling_code": "223",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mlt.svg",
    "name": "Malta",
    "country_code": "MLT",
    "calling_code": "356",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mhl.svg",
    "name": "Marshall Islands",
    "country_code": "MHL",
    "calling_code": "692",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mtq.svg",
    "name": "Martinique",
    "country_code": "MTQ",
    "calling_code": "596",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/mrt.svg",
    "name": "Mauritania",
    "country_code": "MRT",
    "calling_code": "222",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mus.svg",
    "name": "Mauritius",
    "country_code": "MUS",
    "calling_code": "230",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/myt.svg",
    "name": "Mayotte",
    "country_code": "MYT",
    "calling_code": "262",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mex.svg",
    "name": "Mexico",
    "country_code": "MEX",
    "calling_code": "52",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/fsm.svg",
    "name": "Micronesia (Federated States of)",
    "country_code": "FSM",
    "calling_code": "691",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mda.svg",
    "name": "Moldova (Republic of)",
    "country_code": "MDA",
    "calling_code": "373",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mco.svg",
    "name": "Monaco",
    "country_code": "MCO",
    "calling_code": "377",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mng.svg",
    "name": "Mongolia",
    "country_code": "MNG",
    "calling_code": "976",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mne.svg",
    "name": "Montenegro",
    "country_code": "MNE",
    "calling_code": "382",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/msr.svg",
    "name": "Montserrat",
    "country_code": "MSR",
    "calling_code": "1664",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/mar.svg",
    "name": "Morocco",
    "country_code": "MAR",
    "calling_code": "212",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/moz.svg",
    "name": "Mozambique",
    "country_code": "MOZ",
    "calling_code": "258",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mmr.svg",
    "name": "Myanmar",
    "country_code": "MMR",
    "calling_code": "95",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nam.svg",
    "name": "Namibia",
    "country_code": "NAM",
    "calling_code": "264",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nru.svg",
    "name": "Nauru",
    "country_code": "NRU",
    "calling_code": "674",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/npl.svg",
    "name": "Nepal",
    "country_code": "NPL",
    "calling_code": "977",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nld.svg",
    "name": "Netherlands",
    "country_code": "NLD",
    "calling_code": "31",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ncl.svg",
    "name": "New Caledonia",
    "country_code": "NCL",
    "calling_code": "687",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nzl.svg",
    "name": "New Zealand",
    "country_code": "NZL",
    "calling_code": "64",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nic.svg",
    "name": "Nicaragua",
    "country_code": "NIC",
    "calling_code": "505",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/ner.svg",
    "name": "Niger",
    "country_code": "NER",
    "calling_code": "227",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nga.svg",
    "name": "Nigeria",
    "country_code": "NGA",
    "calling_code": "234",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/niu.svg",
    "name": "Niue",
    "country_code": "NIU",
    "calling_code": "683",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nfk.svg",
    "name": "Norfolk Island",
    "country_code": "NFK",
    "calling_code": "672",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/prk.svg",
    "name": "Korea (Democratic People's Republic of)",
    "country_code": "PRK",
    "calling_code": "850",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/mnp.svg",
    "name": "Northern Mariana Islands",
    "country_code": "MNP",
    "calling_code": "1670",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/nor.svg",
    "name": "Norway",
    "country_code": "NOR",
    "calling_code": "47",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/omn.svg",
    "name": "Oman",
    "country_code": "OMN",
    "calling_code": "968",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pak.svg",
    "name": "Pakistan",
    "country_code": "PAK",
    "calling_code": "92",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/plw.svg",
    "name": "Palau",
    "country_code": "PLW",
    "calling_code": "680",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pse.svg",
    "name": "Palestine, State of",
    "country_code": "PSE",
    "calling_code": "970",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pan.svg",
    "name": "Panama",
    "country_code": "PAN",
    "calling_code": "507",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/png.svg",
    "name": "Papua New Guinea",
    "country_code": "PNG",
    "calling_code": "675",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pry.svg",
    "name": "Paraguay",
    "country_code": "PRY",
    "calling_code": "595",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/per.svg",
    "name": "Peru",
    "country_code": "PER",
    "calling_code": "51",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/phl.svg",
    "name": "Philippines",
    "country_code": "PHL",
    "calling_code": "63",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pcn.svg",
    "name": "Pitcairn",
    "country_code": "PCN",
    "calling_code": "64",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pol.svg",
    "name": "Poland",
    "country_code": "POL",
    "calling_code": "48",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/prt.svg",
    "name": "Portugal",
    "country_code": "PRT",
    "calling_code": "351",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/pri.svg",
    "name": "Puerto Rico",
    "country_code": "PRI",
    "calling_code": "1787",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/qat.svg",
    "name": "Qatar",
    "country_code": "QAT",
    "calling_code": "974",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/kos.svg",
    "name": "Republic of Kosovo",
    "country_code": "KOS",
    "calling_code": "383",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/reu.svg",
    "name": "Réunion",
    "country_code": "REU",
    "calling_code": "262",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/rou.svg",
    "name": "Romania",
    "country_code": "ROU",
    "calling_code": "40",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/rus.svg",
    "name": "Russian Federation",
    "country_code": "RUS",
    "calling_code": "7",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/rwa.svg",
    "name": "Rwanda",
    "country_code": "RWA",
    "calling_code": "250",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/blm.svg",
    "name": "Saint Barthélemy",
    "country_code": "BLM",
    "calling_code": "590",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/shn.svg",
    "name": "Saint Helena, Ascension and Tristan da Cunha",
    "country_code": "SHN",
    "calling_code": "290",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/kna.svg",
    "name": "Saint Kitts and Nevis",
    "country_code": "KNA",
    "calling_code": "1869",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/lca.svg",
    "name": "Saint Lucia",
    "country_code": "LCA",
    "calling_code": "1758",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/maf.svg",
    "name": "Saint Martin",
    "country_code": "MAF",
    "calling_code": "590",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/spm.svg",
    "name": "Saint Pierre and Miquelon",
    "country_code": "SPM",
    "calling_code": "508",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/vct.svg",
    "name": "Saint Vincent and the Grenadines",
    "country_code": "VCT",
    "calling_code": "1784",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/wsm.svg",
    "name": "Samoa",
    "country_code": "WSM",
    "calling_code": "685",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/smr.svg",
    "name": "San Marino",
    "country_code": "SMR",
    "calling_code": "378",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/stp.svg",
    "name": "Sao Tome and Principe",
    "country_code": "STP",
    "calling_code": "239",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sau.svg",
    "name": "Saudi Arabia",
    "country_code": "SAU",
    "calling_code": "966",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sen.svg",
    "name": "Senegal",
    "country_code": "SEN",
    "calling_code": "221",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/srb.svg",
    "name": "Serbia",
    "country_code": "SRB",
    "calling_code": "381",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/syc.svg",
    "name": "Seychelles",
    "country_code": "SYC",
    "calling_code": "248",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sle.svg",
    "name": "Sierra Leone",
    "country_code": "SLE",
    "calling_code": "232",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sgp.svg",
    "name": "Singapore",
    "country_code": "SGP",
    "calling_code": "65",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/sxm.svg",
    "name": "Sint Maarten",
    "country_code": "SXM",
    "calling_code": "1721",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/svk.svg",
    "name": "Slovakia",
    "country_code": "SVK",
    "calling_code": "421",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/svn.svg",
    "name": "Slovenia",
    "country_code": "SVN",
    "calling_code": "386",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/slb.svg",
    "name": "Solomon Islands",
    "country_code": "SLB",
    "calling_code": "677",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/som.svg",
    "name": "Somalia",
    "country_code": "SOM",
    "calling_code": "252",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/zaf.svg",
    "name": "South Africa",
    "country_code": "ZAF",
    "calling_code": "27",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sgs.svg",
    "name": "South Georgia and the South Sandwich Islands",
    "country_code": "SGS",
    "calling_code": "500",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/kor.svg",
    "name": "Korea (Republic of)",
    "country_code": "KOR",
    "calling_code": "82",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ssd.svg",
    "name": "South Sudan",
    "country_code": "SSD",
    "calling_code": "211",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/esp.svg",
    "name": "Spain",
    "country_code": "ESP",
    "calling_code": "34",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/lka.svg",
    "name": "Sri Lanka",
    "country_code": "LKA",
    "calling_code": "94",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sdn.svg",
    "name": "Sudan",
    "country_code": "SDN",
    "calling_code": "249",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/sur.svg",
    "name": "Suriname",
    "country_code": "SUR",
    "calling_code": "597",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/sjm.svg",
    "name": "Svalbard and Jan Mayen",
    "country_code": "SJM",
    "calling_code": "4779",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/swz.svg",
    "name": "Swaziland",
    "country_code": "SWZ",
    "calling_code": "268",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/swe.svg",
    "name": "Sweden",
    "country_code": "SWE",
    "calling_code": "46",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/che.svg",
    "name": "Switzerland",
    "country_code": "CHE",
    "calling_code": "41",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/syr.svg",
    "name": "Syrian Arab Republic",
    "country_code": "SYR",
    "calling_code": "963",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/twn.svg",
    "name": "Taiwan",
    "country_code": "TWN",
    "calling_code": "886",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tjk.svg",
    "name": "Tajikistan",
    "country_code": "TJK",
    "calling_code": "992",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tza.svg",
    "name": "Tanzania, United Republic of",
    "country_code": "TZA",
    "calling_code": "255",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tha.svg",
    "name": "Thailand",
    "country_code": "THA",
    "calling_code": "66",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tls.svg",
    "name": "Timor-Leste",
    "country_code": "TLS",
    "calling_code": "670",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tgo.svg",
    "name": "Togo",
    "country_code": "TGO",
    "calling_code": "228",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tkl.svg",
    "name": "Tokelau",
    "country_code": "TKL",
    "calling_code": "690",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ton.svg",
    "name": "Tonga",
    "country_code": "TON",
    "calling_code": "676",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tto.svg",
    "name": "Trinidad and Tobago",
    "country_code": "TTO",
    "calling_code": "1868",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/tun.svg",
    "name": "Tunisia",
    "country_code": "TUN",
    "calling_code": "216",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tur.svg",
    "name": "Turkey",
    "country_code": "TUR",
    "calling_code": "90",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tkm.svg",
    "name": "Turkmenistan",
    "country_code": "TKM",
    "calling_code": "993",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/tca.svg",
    "name": "Turks and Caicos Islands",
    "country_code": "TCA",
    "calling_code": "1649",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/tuv.svg",
    "name": "Tuvalu",
    "country_code": "TUV",
    "calling_code": "688",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/uga.svg",
    "name": "Uganda",
    "country_code": "UGA",
    "calling_code": "256",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ukr.svg",
    "name": "Ukraine",
    "country_code": "UKR",
    "calling_code": "380",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/are.svg",
    "name": "United Arab Emirates",
    "country_code": "ARE",
    "calling_code": "971",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/gbr.svg",
    "name": "United Kingdom of Great Britain and Northern Ireland",
    "country_code": "GBR",
    "calling_code": "44",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/usa.svg",
    "name": "United States of America",
    "country_code": "USA",
    "calling_code": "1",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/ury.svg",
    "name": "Uruguay",
    "country_code": "URY",
    "calling_code": "598",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/uzb.svg",
    "name": "Uzbekistan",
    "country_code": "UZB",
    "calling_code": "998",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/vut.svg",
    "name": "Vanuatu",
    "country_code": "VUT",
    "calling_code": "678",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/ven.svg",
    "name": "Venezuela (Bolivarian Republic of)",
    "country_code": "VEN",
    "calling_code": "58",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/vnm.svg",
    "name": "Viet Nam",
    "country_code": "VNM",
    "calling_code": "84",
    "active": true
  },
  {
    "flag": "https://restcountries.eu/data/wlf.svg",
    "name": "Wallis and Futuna",
    "country_code": "WLF",
    "calling_code": "681",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/esh.svg",
    "name": "Western Sahara",
    "country_code": "ESH",
    "calling_code": "212",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/yem.svg",
    "name": "Yemen",
    "country_code": "YEM",
    "calling_code": "967",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/zmb.svg",
    "name": "Zambia",
    "country_code": "ZMB",
    "calling_code": "260",
    "active": false
  },
  {
    "flag": "https://restcountries.eu/data/zwe.svg",
    "name": "Zimbabwe",
    "country_code": "ZWE",
    "calling_code": "263",
    "active": false
  }
]

function getBrowserLocales(options = {}) {
  const defaultOptions = {
    languageCodeOnly: false,
  };

  const opt = {
    ...defaultOptions,
    ...options,
  };

  const browserLocales =
    navigator.languages === undefined
      ? [navigator.language]
      : navigator.languages;
  if (!browserLocales) {
    return undefined;
  }

  return browserLocales.map(locale => {
    const trimmedLocale = locale.trim();
    return opt.languageCodeOnly
      ? trimmedLocale.split(/-|_/)[0]
      : trimmedLocale;
  });
}

Payment.guessCountry = function () {
  const langs = getBrowserLocales();
  switch (true) {
    case langs.includes("en-AR"):
    case langs.includes("es-AR"):
      return "ARG";
    case langs.includes("en-BE"):
    case langs.includes("es-BE"):
      return "BLZ";
    case langs.includes("qu-BO"):
    case langs.includes("es-BO"):
      return "BOL";
    case langs.includes("en-BR"):
    case langs.includes("pt-BR"):
    case langs.includes("es-BR"):
      return "BRA";
    case langs.includes("en-CA"):
    case langs.includes("fr-CA"):
    case langs.includes("iu-CA"):
    case langs.includes("moh-CA"):
    case langs.includes("es-CA"):
      return "CAN";
    case langs.includes("en-CL"):
    case langs.includes("arn-CL"):
    case langs.includes("es-CL"):
      return "CHL";
    case langs.includes("en-CX"):
      return "CXR";
    case langs.includes("en-CO"):
    case langs.includes("es-C0"):
      return "COL";
    case langs.includes("es-CR"):
      return "CRI";
    case langs.includes("es-CU"):
      return "CUB";
    case langs.includes("nl-CW"):
    case langs.includes("en-CW"):
      return "CUW";
    case langs.includes("es-EC"):
    case langs.includes("en-EC"):
      return "ECU";
    case langs.includes("es-DM"):
    case langs.includes("en-DM"):
      return "DMA";
    case langs.includes("es-DO"):
      return "DOM";
    case langs.includes("es-SV"):
      return "SLV";
    case langs.includes("en-FK"):
    case langs.includes("es-FK"):
      return "FLK";
    case langs.includes("fr-GF"):
    case langs.includes("es-GF"):
      return "GUF";
    case langs.includes("en-GD"):
    case langs.includes("es-GD"):
      return "GRD";
    case langs.includes("da-GL"):
    case langs.includes("kl-GL"):
    case langs.includes("es-GL"):
      return "GRL";
    case langs.includes("fr-GP"):
    case langs.includes("es-GP"):
      return "GLP";
    case langs.includes("es-GT"):
      return "GTM";
    case langs.includes("en-GY"):
    case langs.includes("es-GY"):
      return "GUY";
    case langs.includes("fr-HT"):
    case langs.includes("es-HT"):
      return "HTI";
    case langs.includes("es-HN"):
      return "HND";
    case langs.includes("en-JM"):
      return "JAM";
    case langs.includes("fr-MQ"):
    case langs.includes("es-MQ"):
      return "MTQ";
    case langs.includes("es-MX"):
      return "MEX";
    case langs.includes("es-NI"):
      return "NIC";
    case langs.includes("es-PA"):
      return "PAN";
    case langs.includes("gn-PY"):
    case langs.includes("es-PY"):
      return "PRY";
    case langs.includes("qu-PE"):
    case langs.includes("es-PE"):
      return "PER";
    case langs.includes("fr-BL"):
    case langs.includes("es-BL"):
      return "BLM";
    case langs.includes("fr-PM"):
    case langs.includes("es-PM"):
      return "SPM";
    case langs.includes("en-KN"):
    case langs.includes("es-KN"):
      return "KNA";
    case langs.includes("en-LC"):
    case langs.includes("es-LC"):
      return "LCA";
    case langs.includes("fr-MF"):
    case langs.includes("es-MF"):
      return "MAF";
    case langs.includes("en-VC"):
    case langs.includes("en-VC"):
      return "VCT";
    case langs.includes("zh-SG"):
    case langs.includes("en-SG"):
    case langs.includes("zh"):
      return "SGP";
    case langs.includes("nl-SX"):
    case langs.includes("en-SX"):
    case langs.includes("es-SX"):
      return "SXM";
    case langs.includes("nl-SR"):
    case langs.includes("es-SR"):
      return "SUR";
    case langs.includes("en-TT"):
    case langs.includes("es-TT"):
      return "TTO";
    case langs.includes("en-TC"):
    case langs.includes("es-TC"):
      return "TCA";
    case langs.includes("chr-US"):
    case langs.includes("en-US"):
    case langs.includes("haw-US"):
    case langs.includes("lkt-US"):
    case langs.includes("es-US"):
      return "USA";
    case langs.includes("es-UY"):
      return "URY";
    case langs.includes("es-VE"):
      return "VEN";
    case langs.includes("vi-VN"):
    case langs.includes("vi"):
      return "VNM";
    case langs.includes("fr"):
      return "CAN";
    case langs.includes("es-ES"):
    case langs.includes("es"):
      return "ARG";
    case langs.includes("nl"):
      return "CUW";
    case langs.includes("pt"):
      return "BRA";
    case langs.includes("en"):
      return "USA";
    default:
      return 7;
  }
}

Payment.getCountryByCountryCode = function (country_code) {
  return Payment.COUNTRIES.filter(country => country.country_code === country_code)[0];
}