function rejectPayment(uint256 _index) external onlyDebtor returns (bool) {
    require(payments[_index].status == Status.Requested);
    require(payments[_index].requestedTime + 24*60*60 > block.timestamp);
    payments[_index].status = Status.Rejected;
    return true;
  }