#NEWLINE# def update( self , payment_method_token , params ) : #NEWLINE# #INDENT# Resource . verify_keys ( params , PaymentMethod . update_signature ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# if ( ( payment_method_token is None ) or ( payment_method_token . strip ( ) == '' ) ) : #NEWLINE# #INDENT# raise NotFoundError ( ) #NEWLINE# #UNINDENT# return self . _put ( ( '/payment_methods/any/' + payment_method_token ) , { #NEWLINE# #INDENT# 'payment_method' : params , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except NotFoundError : #NEWLINE# #INDENT# raise NotFoundError ( ( ( 'payment method with token ' + repr ( payment_method_token ) ) + ' not found' ) )