Moved some logic from payments_controller to payment and attendee models.