def METHOD_NAME(self, payment_method_token, params):
    Resource.verify_keys(params, PaymentMethod.update_signature())
    self.__check_for_deprecated_attributes(params);
    try:
        if payment_method_token is None or payment_method_token.strip() == "":
            raise NotFoundError()
        return self._put(
            "/payment_methods/any/" + payment_method_token,
            {"payment_method": params}
        )
    except NotFoundError:
        raise NotFoundError("payment method with token " + repr(payment_method_token) + " not found")