How to identify and handle 'CANCELLED' payments?

Our E-card payments are simply payments to the studio: they do not have related orders.
Order ID is not a required field in the Create Payment API.

If a missing order ID was a consistent cause of failure, many hundred payments would be failing.

Also your answer suggests the VOID was issued by Square? Not by cutomer or Card Company?