This would be a nice trigger to start a workflow. Use case, is for if a customer paying for a course / membership fails a payment, they will not have access to the course or community until they make the payment.
You could also add the feature that they will lose access automatically and we wouldn't need the trigger. Maybe make it a system email? Thanks!