#NEWLINE# def VerifyReceipt( self , receipt_data , callback ) : #NEWLINE# #INDENT# 'Verifies a receipt.  Callback receives a VerifyResponse.' #NEWLINE# def _OnFetch( response ) : #NEWLINE# #INDENT# response . rethrow ( ) #NEWLINE# callback ( VerifyResponse ( receipt_data , response . body ) ) #NEWLINE# #UNINDENT# request = { #NEWLINE# #INDENT# 'receipt-data' : base64 . b64encode ( receipt_data ) , #NEWLINE# 'password' : secrets . GetSecret ( 'itunes_subscription_secret' ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . http_client . fetch ( self . _settings [ 'verify_url' ] , method = 'POST' , body = json . dumps ( request ) , callback = _OnFetch )