def MakeRenewedResponse():
 reference = json.loads(kVerifyResponseRenewedExpired)
 return json.dumps({'status': 0, 'receipt': reference['receipt'], 'latest_receipt': base64.b64encode('fake encoded receipt'), 'latest_expired_receipt_info': reference['latest_expired_receipt_info']})

def MakeRenewedResponse ( ) : reference = json . loads ( kVerifyResponseRenewedExpired ) return json . dumps ( { 'status' : 0 , 'receipt' : reference [ 'receipt' ] , 'latest_receipt' : base64 . b64encode ( 'fake encoded receipt' ) , 'latest_expired_receipt_info' : reference [ 'latest_expired_receipt_info' ] } )
returns a response with an unexpired renewal .