#NEWLINE# def get_charge_amount( self , request ) : #NEWLINE# #INDENT# if ( request . POST [ 'paymentAmount' ] == 'full' ) : #NEWLINE# #INDENT# return self . balance #NEWLINE# #UNINDENT# return Decimal ( request . POST [ 'customPaymentAmount' ] )