#NEWLINE# def get_form( self , payment , data = None ) : #NEWLINE# #INDENT# if ( payment . status == 'waiting' ) : #NEWLINE# #INDENT# payment . change_status ( 'input' ) #NEWLINE# #UNINDENT# form = PaymentForm ( data = data , payment = form , provider = self ) #NEWLINE# if form . is_valid ( ) : #NEWLINE# #INDENT# raise RedirectNeeded ( payment . get_success_url ( ) ) #NEWLINE# #UNINDENT# return form