What happens if a referred customer cancels?

Commission payments for that customer stop from the next billing cycle. There is no clawback — any commission already paid to you is yours to keep, regardless of whether the customer stays or leaves.