The vendor collects the sales tax from the customer, and then (a month later) reports it to the government and pays the government back; but the only sales taxes that a vendor owes are the ones it has collected (or, in case of a dispute with the govt, the ones it is assumed to have collected).
If for example a customer buys but does not pay, then the sales tax associated with that purchase is not owed.
If for example a customer buys but does not pay, then the sales tax associated with that purchase is not owed.