#NEWLINE# def void( self , identification , options = None ) : #NEWLINE# #INDENT# 'Using Authorize.net payment gateway, void the\n        specified transaction' #NEWLINE# if ( not options ) : #NEWLINE# #INDENT# options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# post = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# post [ 'trans_id' ] = identification #NEWLINE# post . update ( options ) #NEWLINE# response = self . commit ( 'VOID' , None , post ) #NEWLINE# status = 'SUCCESS' #NEWLINE# if ( response . response_code != 1 ) : #NEWLINE# #INDENT# status = 'FAILURE' #NEWLINE# transaction_was_unsuccessful . send ( sender = self , type = 'void' , response = response ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# transaction_was_successful . send ( sender = self , type = 'void' , response = response ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'status' : status , #NEWLINE# 'response' : response , #NEWLINE# #UNINDENT# }