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') 
  AND (
    cscart_payment_processors.processor_script IS NULL 
    OR cscart_payment_processors.processor_script <> 'pingpp.php'
  ) 
HAVING 
  processor_status = 'A' 
ORDER BY 
  cscart_payments.position

Query time 0.00089

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.190789162,
    "having_condition": "processor_status = 'A'",
    "filesort": {
      "sort_key": "cscart_payments.position",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_payments",
              "access_type": "ALL",
              "loops": 1,
              "rows": 16,
              "cost": 0.0134628,
              "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": [
                "u428615623_ecartifygonje.cscart_payments.payment_id",
                "const"
              ],
              "loops": 16,
              "rows": 1,
              "cost": 0.01513024,
              "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": ["u428615623_ecartifygonje.cscart_payments.processor_id"],
              "loops": 16,
              "rows": 1,
              "cost": 0.01513024,
              "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": ["u428615623_ecartifygonje.cscart_payment_processors.addon"],
              "loops": 16,
              "rows": 1,
              "cost": 0.01513024,
              "filtered": 100
            }
          },
          {
            "block-nl-join": {
              "table": {
                "table_name": "storefronts_payments",
                "access_type": "index",
                "key": "idx_storefront_id",
                "key_length": "4",
                "used_key_parts": ["storefront_id"],
                "loops": 16,
                "rows": 3,
                "cost": 0.1010876,
                "filtered": 100,
                "using_index": true
              },
              "buffer_type": "flat",
              "buffer_size": "116KiB",
              "join_type": "BNL",
              "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)"
            }
          }
        ]
      }
    }
  }
}