Hello,
By default it is set to upgrade instantly, however you can change your settings so that the upgrade only takes place after invoice has been paid.
To change settings, follow steps below:
Go to Settings > Company > Billing/Payment > Invoice and Charge Options
Scroll down and you can find this at very end: Queue Service Changes Until Paid
You can tick that and save the settings to enable upgrade only after invoice is paid.