@nc50lc: does that mean that BTC Pay server (i didn't use it for the moment) do not use the master private key, but only the scriptHash?
I'm not using it so I can't give elaborate answers
but that's a payment processor, not an Electrum server implementation like ElectrumX, electrs, Esplora or Fulcrum.
Connecting Electrum to BTCPayserver isn't the same as connection between Electrum client to a server (
Network setting).
It requires your master public key since it needs it to generate new addresses for you.