HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/give/src/License/Actions/AddPlatformFeeAmountToSystemInfo.php
<?php

namespace Give\License\Actions;

use Give\License\Repositories\LicenseRepository;

/**
 * @since 4.3.0
 */
class AddPlatformFeeAmountToSystemInfo
{
    /**
     * Callback for `give_add_system_info_configuration` that adds the platform fee amount to the system info table.
     * @since 4.3.0
     */
    public function __invoke($settings)
    {
        /**
         * @var LicenseRepository $licenseRepository
         */
        $licenseRepository = give(LicenseRepository::class);
        $label = __('Platform Fee Amount', 'give');

        ?>
        <tr>
            <td data-export-label="<?php echo $label; ?>">
                <?php echo $label; ?>:
            </td>
            <td class="help">
                <?php echo Give()->tooltips->render_help(__('The GiveWP Platform Fee Percentage.', 'give')); ?>
            </td>
            <td>
                <?php echo $licenseRepository->getPlatformFeePercentage() . '%'; ?>
            </td>
        </tr>
        <?php
    }
}