def METHOD_NAME(
    _,
    __,
    check_payment_balance_mock,
    staff_api_client,
    channel_USD,
    check_payment_balance_input,
):
    # given
    channel_USD.is_active = False
    channel_USD.save(update_fields=["is_active"])
    check_payment_balance_input["channel"] = "main"
    # when
    response = staff_api_client.post_graphql(
        MUTATION_CHECK_PAYMENT_BALANCE, {"input": check_payment_balance_input}
    )
    # then
    content = get_graphql_content(response)
    errors = content["data"]["paymentCheckBalance"]["errors"]
    assert len(errors) == 1
    assert errors[0]["code"] == PaymentErrorCode.CHANNEL_INACTIVE.value.upper()
    assert errors[0]["field"] == "channel"
    assert errors[0]["message"] == "Channel with 'main' is inactive."
    assert check_payment_balance_mock.call_count == 0