Square Add-On Domain change : will the account be connected still?

Hi! I wonder if when using the Square Add-On I can connect it on a staging website, and if the connection will be effective once I switch the domain of the website, or if I will need to reconnect it.

Did you ever tried ?

Thank you