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
  ) 
  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.00005

JSON explain

{
  "query_block": {
    "select_id": 1,
    "having_condition": "processor_status = 'A'",
    "filesort": {
      "sort_key": "cscart_payments.position",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_payments",
              "access_type": "ALL",
              "possible_keys": ["c_status"],
              "rows": 11,
              "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": ["ebonza_cscart_test.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": ["ebonza_cscart_test.cscart_payments.processor_id"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_payment_processors.processor_script is null or cscart_payment_processors.processor_script <> 'pingpp.php')"
            }
          },
          {
            "table": {
              "table_name": "cscart_addons",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "98",
              "used_key_parts": ["addon"],
              "ref": ["ebonza_cscart_test.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": 2,
                "filtered": 100,
                "using_index": true
              },
              "buffer_type": "flat",
              "buffer_size": "72Kb",
              "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 company_id usergroup_ids position status template processor_id processor_params a_surcharge p_surcharge tax_ids localization payment_category country_selection_mode payment description instructions surcharge_title lang_code processor_status processor_type processor_script
13 0 0 0 A addons/stripe_connect/views/orders/components/payments/stripe_connect.tpl 107 a:10:{s:17:"is_stripe_connect";s:1:"Y";s:10:"created_at";s:10:"1639459413";s:9:"client_id";s:35:"ca_IdUTVF7u2BAezsxvIfMnePElMKycEUI1";s:15:"publishable_key";s:107:"pk_test_51I2DFuH3TuB3xzpt3aJSmkPmxzmG4zp3u9hEqUt5Ec47NnXuvek40F4pyZKAr5itaYjHuAU4FU5t9fvZimuvCB0w000ATUBrw0";s:10:"secret_key";s:107:"sk_test_51I2DFuH3TuB3xzptz352WswRJtPfwqmvMMViGuDk9VWlCRhZPGsVUwzgFQOfZyktbF54DZwZjgKOSZN57kH0Uuyt00lR7ihlfx";s:8:"currency";s:3:"EUR";s:12:"payment_type";s:4:"card";s:19:"is_checkout_enabled";s:1:"Y";s:22:"allow_express_accounts";s:1:"Y";s:23:"delay_transfer_of_funds";s:1:"Y";} 0.000 0.000 tab1 N Stripe Connect Payments <p><span style="color: rgb(95, 73, 122);"><strong>Information for the payment</strong></span></p> <p><span style="color: rgb(95, 73, 122);"><a href="https://docs.cs-cart.com/latest/user_guide/addons/stripe_connect/index.html?_ga=2.210752597.1316553043.1616619757-1027202427.1616619757#general-information" class="headerlink" title="Permalink to this headline"></a></span></p> <ul><li><span style="color: rgb(95, 73, 122);">All main credit cards are accepted&mdash;Visa, MasterCard, American Express, Discover, JCB, and many others.</span></li><li><span style="color: rgb(95, 73, 122);">Stripe connect supports payments in 135+ currencies. Currency conversion is included&mdash;customers pay in their native currency, vendors receive funds in theirs.</span></li><li><span style="color: rgb(95, 73, 122);">When a customer pays for an order that consists of products from different vendors in one cart, Stripe Connect automatically splits the payment between the vendors.</span></li><li><span style="color: rgb(95, 73, 122);">The money is transferred straight from the customer to the vendor without any deposits on the Marketplace owner side.&nbsp;&nbsp;</span></li><li><span style="color: rgb(95, 73, 122);">The vendor is responsible for the refund for your order.<br></span></li><li><span style="color: rgb(95, 73, 122);">If the order is not immediately paid, the product is not booked in the system, that means, the product could be still sold to another buyer.</span></li><li><span style="color: rgb(95, 73, 122);">If the order is not paid till 48 hours, will be cancelled in the system without notice.</span></li><li><span style="color: rgb(95, 73, 122);">If you have any questions to the order, status of the order, changes in the order, shipment, always contact directly the vendor /not eBonza Marketplace provider/.</span></li></ul> en A P stripe_connect.php