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 (
    cscart_payments.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_payments.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_payments.usergroup_ids
    )
  ) 
  AND (
    storefronts_payments.storefront_id = 1 
    OR storefronts_payments.storefront_id IS NULL
  ) 
HAVING 
  processor_status = 'A' 
ORDER BY 
  cscart_payments.position

Query time 0.00124

JSON explain

{
  "query_block": {
    "select_id": 1,
    "having_condition": "processor_status = 'A'",
    "filesort": {
      "sort_key": "cscart_payments.position",
      "temporary_table": {
        "table": {
          "table_name": "cscart_payments",
          "access_type": "ALL",
          "possible_keys": ["c_status"],
          "rows": 14,
          "filtered": 100,
          "attached_condition": "cscart_payments.`status` = 'A' and (cscart_payments.usergroup_ids = '' or find_in_set(0,cscart_payments.usergroup_ids) or find_in_set(1,cscart_payments.usergroup_ids))"
        },
        "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": ["herbaria_cscart_4_18.cscart_payments.payment_id", "const"],
          "rows": 1,
          "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": ["herbaria_cscart_4_18.cscart_payments.processor_id"],
          "rows": 1,
          "filtered": 100
        },
        "table": {
          "table_name": "cscart_addons",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "98",
          "used_key_parts": ["addon"],
          "ref": ["herbaria_cscart_4_18.cscart_payment_processors.addon"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(trigcond(cscart_payment_processors.addon is not null))"
        },
        "block-nl-join": {
          "table": {
            "table_name": "storefronts_payments",
            "access_type": "index",
            "key": "PRIMARY",
            "key_length": "8",
            "used_key_parts": ["storefront_id", "payment_id"],
            "rows": 14,
            "filtered": 100,
            "using_index": true
          },
          "buffer_type": "flat",
          "buffer_size": "256Kb",
          "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)"
        }
      }
    }
  }
}

Result

payment_id usergroup_ids position status template processor_id a_surcharge p_surcharge localization tax_ids payment_category company_id processor_params forbidden_usergroup_ids cp_min_pr_value cp_min_or_value cp_max_pr_value cp_max_or_value cp_rest_def cp_object_restr payment description lang_code instructions surcharge_title processor_status processor_type processor_script
17 0 0 A addons/stripe/views/orders/components/payments/stripe.tpl 102 0.000 0.000 tab1 1 a:11:{s:9:"is_stripe";s:1:"Y";s:7:"is_test";s:1:"N";s:10:"webhook_id";s:27:"we_1R7JXZLC5HwHtxaJwrJAhmjB";s:18:"webhook_secret_key";s:38:"whsec_pP5YJFtOjx4Eedb2UNldR2rVUJXkw1BO";s:15:"publishable_key";s:107:"pk_live_51MR1QdLC5HwHtxaJTpJYeKCU5GsBlBK76CbfXSLTb6O1jqtkhvImiAve8cgo8xSI131eD2HcImge1gDwHpYyr4s700EDl7AHUr";s:10:"secret_key";s:107:"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";s:19:"merchant_identifier";s:21:"acct_1MR1QdLC5HwHtxaJ";s:7:"country";s:2:"US";s:8:"currency";s:3:"USD";s:12:"payment_type";s:9:"apple_pay";s:19:"show_payment_button";s:1:"N";} 0.00 0.00 0.00 0.00 N a:1:{s:8:"cond_set";s:3:"all";} Apple Pay en A P stripe.php
1 0 10 A views/orders/components/payments/cc.tpl 2 0.000 0.000 tab1 1 a:7:{s:5:"login";s:11:"7qqtM926U8d";s:15:"transaction_key";s:16:"2qB7nG6ybF788g3y";s:8:"currency";s:3:"USD";s:14:"md5_hash_value";s:0:"";s:4:"mode";s:4:"live";s:16:"transaction_type";s:1:"A";s:12:"order_prefix";s:0:"";} 0.00 0.00 0.00 0.00 N credit card, secure online purchase en A P authorizenet_aim.php
2 0 20 A views/orders/components/payments/money.tpl 0 0.000 0.000 tab3 1 0.00 0.00 0.00 0.00 N credit card by phone (866-628-7627) en <p><strong>Our phone number is</strong> (314) 601-3904</p> <p><strong>Or call toll free at</strong> (866) 628-7627</p> A
3 0 30 A views/orders/components/payments/money.tpl 0 0.000 0.000 tab3 1 0.00 0.00 0.00 0.00 N check or money order by mail en <p><strong>Please send check to:</strong></p> <p>Herbaria<br /> 2016 Marconi Avenue<br /> St. Louis, MO 63110</p> A
12 0 40 A views/orders/components/payments/cc_outside.tpl 4 0.000 0.000 tab2 1 a:11:{s:8:"currency";s:3:"USD";s:12:"order_prefix";s:0:"";s:16:"new_order_status";s:1:"O";s:7:"account";s:25:"internal@herbariasoap.com";s:9:"item_name";s:8:"Herbaria";s:8:"username";s:25:"internal@herbariasoap.com";s:8:"password";s:13:"$100,001Nancy";s:21:"authentication_method";s:9:"signature";s:9:"signature";s:0:"";s:4:"mode";s:4:"live";s:20:"certificate_filename";s:0:"";} 0.00 0.00 0.00 0.00 N a:1:{s:8:"cond_set";s:3:"all";} PayPal en A P paypal.php