# give/4.17.0/src/PaymentGateways/Stripe/DonationFormElements.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.17.0. 33 lines.

- Page: https://pluginprobe.com/plugins/give/4.17.0/code/src/PaymentGateways/Stripe/DonationFormElements.php
- Raw: https://pluginprobe.com/plugins/give/4.17.0/raw/src/PaymentGateways/Stripe/DonationFormElements.php
- Modified: 2021-11-23T23:55:18+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/give/4.17.0/code/src/PaymentGateways/Stripe/DonationFormElements.php#L10-L20`.

```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;
    }
}

```
