#NEWLINE# def post( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . create_card ( request . POST . get ( 'stripeToken' ) ) #NEWLINE# return redirect ( 'pinax_stripe_payment_method_list' ) #NEWLINE# #UNINDENT# except stripe . CardError as e : #NEWLINE# #INDENT# return self . render_to_response ( self . get_context_data ( errors = smart_str ( e ) ) )