SELECT 
  cscart_payments.*, 
  cscart_payment_descriptions.*, 
  IF (
    ISNULL(cscart_addons.status), 
    "A", 
    cscart_addons.status
  ) AS processor_status, 
  cscart_payment_processors.type AS processor_type, 
  cscart_payment_processors.processor_script AS processor_script 
FROM 
  cscart_payments 
  LEFT JOIN cscart_payment_descriptions ON cscart_payment_descriptions.payment_id = cscart_payments.payment_id 
  AND cscart_payment_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_payment_processors ON cscart_payment_processors.processor_id = cscart_payments.processor_id 
  LEFT JOIN cscart_addons ON cscart_payment_processors.addon = cscart_addons.addon 
  LEFT JOIN cscart_storefronts_payments AS storefronts_payments ON storefronts_payments.payment_id = cscart_payments.payment_id 
WHERE 
  cscart_payments.status = 'A' 
  AND (
    storefronts_payments.storefront_id = 1 
    OR storefronts_payments.storefront_id IS NULL
  ) 
  AND cscart_payment_processors.processor_script IN ('stripe.php') 
HAVING 
  processor_status = 'A' 
ORDER BY 
  cscart_payments.position

Query time 0.00034

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.067618183,
    "having_condition": "processor_status = 'A'",
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "cscart_payments.position",
            "table": {
              "table_name": "cscart_payments",
              "access_type": "ALL",
              "loops": 1,
              "rows": 12,
              "cost": 0.0128108,
              "filtered": 100,
              "attached_condition": "cscart_payments.`status` = 'A'"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "cscart_payment_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["payment_id", "lang_code"],
          "ref": ["u985510652_ecartify_abhi.cscart_payments.payment_id", "const"],
          "loops": 12,
          "rows": 1,
          "cost": 0.01155248,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_payment_descriptions.lang_code = 'en')"
        }
      },
      {
        "table": {
          "table_name": "cscart_payment_processors",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["processor_id"],
          "ref": ["u985510652_ecartify_abhi.cscart_payments.processor_id"],
          "loops": 12,
          "rows": 1,
          "cost": 0.01155248,
          "filtered": 100,
          "attached_condition": "cscart_payment_processors.processor_script = 'stripe.php'"
        }
      },
      {
        "table": {
          "table_name": "cscart_addons",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "98",
          "used_key_parts": ["addon"],
          "ref": ["u985510652_ecartify_abhi.cscart_payment_processors.addon"],
          "loops": 12,
          "rows": 1,
          "cost": 0.01155248,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "storefronts_payments",
          "access_type": "ref",
          "possible_keys": ["wdbi_payment_id_24793d7b3f87"],
          "key": "wdbi_payment_id_24793d7b3f87",
          "key_length": "4",
          "used_key_parts": ["payment_id"],
          "ref": ["u985510652_ecartify_abhi.cscart_payments.payment_id"],
          "loops": 12,
          "rows": 1,
          "cost": 0.01250006,
          "filtered": 100,
          "attached_condition": "trigcond(storefronts_payments.storefront_id = 1 or storefronts_payments.storefront_id is null) and trigcond(storefronts_payments.payment_id = cscart_payments.payment_id)",
          "using_index": true
        }
      }
    ]
  }
}