#NEWLINE# def revoke( self , payment_method_token ) : #NEWLINE# #INDENT# if ( ( payment_method_token is None ) or ( not str ( payment_method_token ) . strip ( ) ) ) : #NEWLINE# #INDENT# raise ValueError #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return self . _post ( '/payment_methods/revoke' , { #NEWLINE# #INDENT# 'payment_method' : { #NEWLINE# #INDENT# 'shared_payment_method_token' : payment_method_token , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , None ) #NEWLINE# #UNINDENT# except NotFoundError : #NEWLINE# #INDENT# raise NotFoundError ( ( ( 'payment method with payment_method_token ' + repr ( payment_method_token ) ) + ' not found' ) )