SELECT 
  netting_payments.*, 
  netting_payment_descriptions.*, 
  IF (
    ISNULL(netting_addons.status), 
    "A", 
    netting_addons.status
  ) AS processor_status, 
  netting_payment_processors.type AS processor_type, 
  netting_payment_processors.processor_script AS processor_script 
FROM 
  netting_payments 
  LEFT JOIN netting_payment_descriptions ON netting_payment_descriptions.payment_id = netting_payments.payment_id 
  AND netting_payment_descriptions.lang_code = 'en' 
  LEFT JOIN netting_payment_processors ON netting_payment_processors.processor_id = netting_payments.processor_id 
  LEFT JOIN netting_addons ON netting_payment_processors.addon = netting_addons.addon 
  LEFT JOIN netting_storefronts_payments AS storefronts_payments ON storefronts_payments.payment_id = netting_payments.payment_id 
WHERE 
  netting_payments.status = 'A' 
  AND (
    netting_payments.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, netting_payments.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, netting_payments.usergroup_ids
    )
  ) 
  AND (
    storefronts_payments.storefront_id = 1 
    OR storefronts_payments.storefront_id IS NULL
  ) 
  AND netting_payments.company_id IN ('0') 
HAVING 
  processor_status = 'A' 
ORDER BY 
  netting_payments.position

Query time 0.00093

JSON explain

{
  "query_block": {
    "select_id": 1,
    "having_condition": "processor_status = 'A'",
    "nested_loop": [
      {
        "table": {
          "table_name": "storefronts_payments",
          "access_type": "system",
          "possible_keys": ["PRIMARY", "idx_storefront_id"],
          "rows": 0,
          "filtered": 0,
          "const_row_not_found": true
        }
      },
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "netting_payments.position",
            "table": {
              "table_name": "netting_payments",
              "access_type": "ALL",
              "possible_keys": ["c_status"],
              "rows": 14,
              "filtered": 100,
              "attached_condition": "netting_payments.`status` = 'A' and (netting_payments.usergroup_ids = '' or find_in_set(0,netting_payments.usergroup_ids) or find_in_set(1,netting_payments.usergroup_ids)) and netting_payments.company_id = '0'"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "netting_payment_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["payment_id", "lang_code"],
          "ref": ["pucuda_cscart.netting_payments.payment_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(netting_payment_descriptions.lang_code = 'en')"
        }
      },
      {
        "table": {
          "table_name": "netting_payment_processors",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["processor_id"],
          "ref": ["pucuda_cscart.netting_payments.processor_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "netting_addons",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "98",
          "used_key_parts": ["addon"],
          "ref": ["pucuda_cscart.netting_payment_processors.addon"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(trigcond(netting_payment_processors.addon is not null))"
        }
      }
    ]
  }
}

Result

payment_id company_id usergroup_ids position status template processor_id processor_params a_surcharge p_surcharge tax_ids localization payment_category country_selection_mode cp_allow_for_installment_payments payment description instructions surcharge_title lang_code processor_status processor_type processor_script
12 0 0 0 A addons/paypal_commerce_platform/views/orders/components/payments/paypal_commerce_platform.tpl 102 0.000 0.000 tab1 N N PayPal Complete Payments (Multiparty) en A P paypal_commerce_platform.php
13 0 0 0 A addons/stripe_connect/views/orders/components/payments/stripe_connect.tpl 104 a:10:{s:17:"is_stripe_connect";s:1:"Y";s:10:"created_at";s:10:"1737434303";s:9:"client_id";s:35:"ca_RcosMtU2ZQ00hUihjeqLc8QJNAQf17zS";s:15:"publishable_key";s:107:"pk_live_51Q7G8cFp6Jf8DxAGbOtIAf17iwEkZjGwivIOVA48KDXuNWdp0FQldFwAE0kq4J1KCcWd58mzHkfg30DQ8QcXFegO00tZVTN00j";s:10:"secret_key";s:107:"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";s:8:"currency";s:3:"USD";s:12:"payment_type";s:4:"card";s:19:"is_checkout_enabled";s:1:"N";s:22:"allow_express_accounts";s:1:"Y";s:23:"delay_transfer_of_funds";s:1:"Y";} 0.000 0.000 tab1 N Y Direct Debit en A P stripe_connect.php
14 0 0 0 A addons/stripe/views/orders/components/payments/stripe.tpl 103 a:11:{s:9:"is_stripe";s:1:"Y";s:7:"is_test";s:1:"N";s:10:"webhook_id";s:27:"we_1QrlcuFp6Jf8DxAGyEvfxFpq";s:18:"webhook_secret_key";s:38:"whsec_pQ6BmENzSFHbgz7SPZpkbN3izNujnRFb";s:15:"publishable_key";s:107:"pk_live_51Q7G8cFp6Jf8DxAGbOtIAf17iwEkZjGwivIOVA48KDXuNWdp0FQldFwAE0kq4J1KCcWd58mzHkfg30DQ8QcXFegO00tZVTN00j";s:10:"secret_key";s:107:"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";s:19:"merchant_identifier";s:0:"";s:7:"country";s:2:"US";s:8:"currency";s:3:"USD";s:12:"payment_type";s:15:"stripe_checkout";s:19:"show_payment_button";s:1:"N";} 0.000 0.000 tab1 N Y Stripe <p>Continue with stripe to checkout</p> en A P stripe.php
15 0 0 0 A addons/stripe/views/orders/components/payments/stripe.tpl 103 a:11:{s:9:"is_stripe";s:1:"Y";s:7:"is_test";s:1:"N";s:10:"webhook_id";s:27:"we_1Qrld7Fp6Jf8DxAGA7fqZ6kx";s:18:"webhook_secret_key";s:38:"whsec_sp7YYbvqK5BspeYuIvQZWqgc5QBuJoOv";s:15:"publishable_key";s:107:"pk_live_51Q7G8cFp6Jf8DxAGbOtIAf17iwEkZjGwivIOVA48KDXuNWdp0FQldFwAE0kq4J1KCcWd58mzHkfg30DQ8QcXFegO00tZVTN00j";s:10:"secret_key";s:107:"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";s:19:"merchant_identifier";s:0:"";s:7:"country";s:2:"US";s:8:"currency";s:3:"USD";s:12:"payment_type";s:10:"google_pay";s:19:"show_payment_button";s:1:"Y";} 0.000 0.000 tab1 N N Google Pay en A P stripe.php
16 0 0 0 A addons/stripe/views/orders/components/payments/stripe.tpl 103 a:11:{s:9:"is_stripe";s:1:"Y";s:7:"is_test";s:1:"N";s:10:"webhook_id";s:27:"we_1QrldhFp6Jf8DxAGlTniEoAX";s:18:"webhook_secret_key";s:38:"whsec_dsJKeRuIX3Ss2zZ4uzJmwusl8X1w0TI7";s:15:"publishable_key";s:107:"pk_live_51Q7G8cFp6Jf8DxAGbOtIAf17iwEkZjGwivIOVA48KDXuNWdp0FQldFwAE0kq4J1KCcWd58mzHkfg30DQ8QcXFegO00tZVTN00j";s:10:"secret_key";s:107:"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";s:19:"merchant_identifier";s:0:"";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:"Y";} 0.000 0.000 tab1 N N Apple Pay en A P stripe.php
17 0 0 0 A addons/stripe/views/orders/components/payments/stripe.tpl 103 a:11:{s:9:"is_stripe";s:1:"Y";s:7:"is_test";s:1:"N";s:10:"webhook_id";s:0:"";s:18:"webhook_secret_key";s:0:"";s:15:"publishable_key";s:107:"pk_live_51Q7G8cFp6Jf8DxAGbOtIAf17iwEkZjGwivIOVA48KDXuNWdp0FQldFwAE0kq4J1KCcWd58mzHkfg30DQ8QcXFegO00tZVTN00j";s:10:"secret_key";s:107:"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";s:19:"merchant_identifier";s:0:"";s:7:"country";s:2:"US";s:8:"currency";s:3:"USD";s:12:"payment_type";s:4:"card";s:19:"show_payment_button";s:1:"N";} 0.000 0.000 tab1 N Y Credit Card <p>Enter your payment information</p> en A P stripe.php
2 0 0 40 A views/orders/components/payments/empty.tpl 0 0.000 0.000 tab3 N N Phone ordering Call +18605268004 <h2>When I should use phone ordering?</h2> <p>Order by phone is useful when regular payment methods like credit card are unavailable or considered insecure.</p> <p>Our operators are happy to take your order per phone every business day from 8 a.m. to 5 p.m. EST&nbsp;Call +18605268004</p> en A