def IsValid(self):
    status = self.GetStatus()
    if status == 0 or status == VerifyResponse.EXPIRED_ERROR:
      if self.GetBundleId() != kViewfinderBundleId:
        logging.warning('got signed receipt for another app: %s', self.GetBundleId())
        return False
      return True
    elif status in VerifyResponse.FINAL_ERRORS:
      return False
    else:
      raise ITunesStoreError('Error verfiying receipt: %r' % status)
Returns True if the receipt is properly formatted and signed.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/services/itunes_store.py/VerifyResponse.IsValid