def MakeFreshResponse():
 reference = json.loads(kVerifyResponseRenewedExpired)
 new = {'status': 0, 'receipt': reference['receipt']}
 new['receipt']['expires_date'] = (1000.0 * (time.time() + datetime.timedelta(days=28).total_seconds()))
 return json.dumps(new)

def MakeFreshResponse ( ) : reference = json . loads ( kVerifyResponseRenewedExpired ) new = { 'status' : 0 , 'receipt' : reference [ 'receipt' ] } new [ 'receipt' ] [ 'expires_date' ] = ( 1000.0 * ( time . time ( ) + datetime . timedelta ( days = 28 ) . total_seconds ( ) ) ) return json . dumps ( new )
returns a response for a subscription which has an expiration date in the future .