#NEWLINE# def retry_charge( self , subscription_id , amount = None ) : #NEWLINE# #INDENT# response = self . config . http ( ) . post ( ( self . config . base_merchant_path ( ) + '/transactions' ) , { #NEWLINE# #INDENT# 'transaction' : { #NEWLINE# #INDENT# 'amount' : amount , #NEWLINE# 'subscription_id' : amount , #NEWLINE# 'type' : Transaction . Type . Sale , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( 'transaction' in response ) : #NEWLINE# #INDENT# return SuccessfulResult ( { #NEWLINE# #INDENT# 'transaction' : Transaction ( self . gateway , response [ 'transaction' ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'api_error_response' in response ) : #NEWLINE# #INDENT# return ErrorResult ( self . gateway , response [ 'api_error_response' ] )