#NEWLINE# def return_transaction( self , amount , trans_id ) : #NEWLINE# #INDENT# '\n        Return funds back to a prior authorization.\n\n        - This cannot be used on transactions over 6 months old\n        - This type of return is limited to one use per orderID.\n        - Amount returned cannot exceed that of the original auth.\n        - Use this mode when returning funds back to the same transaction.\n        ' #NEWLINE# super ( PlugnPay , self ) . set ( self . REQUEST_FIELDS [ 'trans_mode' ] , 'return' ) #NEWLINE# super ( PlugnPay , self ) . set ( self . REQUEST_FIELDS [ 'trans_id' ] , trans_id ) #NEWLINE# super ( PlugnPay , self ) . set ( self . REQUEST_FIELDS [ 'amount' ] , amount ) #NEWLINE# super ( PlugnPay , self ) . set ( 'txn-type' , 'auth' ) #NEWLINE# ( response , response_time ) = self . request ( ) #NEWLINE# return self . parse ( response , response_time )