def METHOD_NAME(self, item):
    """
    Handle shop_medal buy interface if detected
    Args:
        item: Item to handle
    Returns:
        bool: whether interface was detected and handled
    """
    if self.appear(SHOP_BUY_CONFIRM_SELECT, offset=(20, 20), interval=3):
        self.shop_buy_select_execute(item)
        self.interval_reset(SHOP_BUY_CONFIRM_SELECT)
        return True
    if self.appear(SHOP_BUY_CONFIRM_AMOUNT, offset=(20, 20), interval=3):
        self.shop_buy_amount_execute(item)
        self.interval_reset(SHOP_BUY_CONFIRM_AMOUNT)
        return True
    return False