# ivyforms/1.5/backend/src/Services/Integrations/MiddlewareUrl.php

The Innovative Form Builder – IvyForms, version 1.5. 24 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/1.5/code/backend/src/Services/Integrations/MiddlewareUrl.php
- Raw: https://pluginprobe.com/plugins/ivyforms/1.5/raw/backend/src/Services/Integrations/MiddlewareUrl.php
- Modified: 2026-10-05T14:37:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/1.5/code/backend/src/Services/Integrations/MiddlewareUrl.php#L10-L20`.

```php
<?php

namespace IvyForms\Services\Integrations;

/**
 * Resolves the ivyforms-middleware base URL (constant + filter).
 */
class MiddlewareUrl
{
    public static function getBaseUrl(): string
    {
        $url = defined('IVYFORMS_MIDDLEWARE_URL') ? IVYFORMS_MIDDLEWARE_URL : '';

        /**
         * Filter the IvyForms integration middleware base URL.
         *
         * @since 1.0.0
         *
         * @param string $url Middleware base URL without trailing slash.
         */
        return rtrim((string) apply_filters('ivyforms/payment/middleware_url', $url), '/');
    }
}

```
