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/PaymentGateways/Stripe/DonationFormElements.php
<?php

namespace Give\PaymentGateways\Stripe;

/**
 * Class DonationFormElements
 * @package Give\PaymentGateways\Stripe
 *
 * We use this class to output HTML fields on donation form.
 *
 * @since 2.9.2
 */
class DonationFormElements
{
    /**
     * Add html tags to form .
     *
     * @since 2.9.2
     *
     * @param array $htmlTags Array of form html tags
     *
     * @return array
     */
    public function addFormHtmlTags($htmlTags)
    {
        if (give_is_gateway_active('stripe_checkout')) {
            $htmlTags['data-stripe-checkout-type'] = give_stripe_get_checkout_type();
        }

        return $htmlTags;
    }
}