# ivyforms/trunk/backend/src/Services/Payment/PaymentsFeature.php

The Innovative Form Builder – IvyForms, version trunk. 27 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/trunk/code/backend/src/Services/Payment/PaymentsFeature.php
- Raw: https://pluginprobe.com/plugins/ivyforms/trunk/raw/backend/src/Services/Payment/PaymentsFeature.php
- Modified: 2026-10-08T14:32:10+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/trunk/code/backend/src/Services/Payment/PaymentsFeature.php#L10-L20`.

```php
<?php

namespace IvyForms\Services\Payment;

/**
 * Release gate for Stripe and PayPal.
 *
 * Square stays "Coming soon" on the Integrations page regardless of this flag.
 * While disabled, Stripe and PayPal cards stay "Coming soon" and nothing else can be
 * managed: no Payments admin page, no payment settings pages and no Payment Method field.
 */
class PaymentsFeature
{
    public static function isEnabled(): bool
    {
        /** @var mixed $enabled Can be overridden in wp-config.php, so not a compile-time value */
        $enabled = defined('IVYFORMS_PAYMENTS_ENABLED') ? constant('IVYFORMS_PAYMENTS_ENABLED') : true;

        /**
         * Filter whether the payments feature is exposed in the admin UI.
         *
         * @param bool $enabled
         */
        return (bool) apply_filters('ivyforms/payments/enabled', (bool) $enabled);
    }
}

```
