Time of supply for online gaming etc. would be earlier of date of invoice or date of payment.

Notification No. 50/2023 – Central Tax, dated 29-9-2023.