def METHOD_NAME(settings, monkeypatch, channel_USD):
    def fun(
        public_api_key=None,
        secret_api_key=None,
        webhook_endpoint_id="12345",
        webhook_secret_key="ABCD",
        active=True,
        auto_capture=True,
        include_receipt_email=None,
    ):
        public_api_key = public_api_key or "test_key"
        secret_api_key = secret_api_key or "secret_key"
        settings.PLUGINS = ["saleor.payment.gateways.stripe.plugin.StripeGatewayPlugin"]
        configuration = [
            {"name": "public_api_key", "value": public_api_key},
            {"name": "secret_api_key", "value": secret_api_key},
            {"name": "automatic_payment_capture", "value": auto_capture},
            {"name": "supported_currencies", "value": "USD"},
        ]
        if webhook_endpoint_id:
            configuration.append(
                {"name": "webhook_endpoint_id", "value": webhook_endpoint_id}
            )
        if webhook_secret_key:
            configuration.append(
                {"name": "webhook_secret_key", "value": webhook_secret_key}
            )
        if include_receipt_email is not None:
            configuration.append(
                {"name": "include_receipt_email", "value": include_receipt_email}
            )
        PluginConfiguration.objects.create(
            identifier=StripeGatewayPlugin.PLUGIN_ID,
            name=StripeGatewayPlugin.PLUGIN_NAME,
            description="",
            active=active,
            channel=channel_USD,
            configuration=configuration,
        )
        manager = get_plugins_manager()
        return manager.plugins_per_channel[channel_USD.slug][0]
    return fun