def METHOD_NAME(
    mocked_initialize, data, user_api_client, checkout_with_prices, plugins_manager
):
    # given
    checkout = checkout_with_prices
    mocked_initialize.return_value = [
        PaymentGatewayData(app_identifier="app.id", data={"data": data})
    ]
    variables = {
        "id": to_global_id_or_none(checkout),
        "paymentGateways": [{"id": "app.id", "data": data}],
    }
    # when
    response = user_api_client.post_graphql(
        PAYMENT_GATEWAY_INITIALIZE_WITH_VARIABLES, variables
    )
    # then
    get_graphql_content(response)