What should be done if a chargeback is received but the order has not been processed?

Cancel the order and accept the chargeback. Do not process any refunds for the disputed transaction.