Implements handling of completed payments.