PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / PaymentGateways / Stripe / DonationFormElements.php

DonationFormElements.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/PaymentGateways/Stripe/DonationFormElements.php

33 lines 641 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\PaymentGateways\Stripe;
4
5 /**
6 * Class DonationFormElements
7 * @package Give\PaymentGateways\Stripe
8 *
9 * We use this class to output HTML fields on donation form.
10 *
11 * @since 2.9.2
12 */
13 class DonationFormElements
14 {
15 /**
16 * Add html tags to form .
17 *
18 * @since 2.9.2
19 *
20 * @param array $htmlTags Array of form html tags
21 *
22 * @return array
23 */
24 public function addFormHtmlTags($htmlTags)
25 {
26 if (give_is_gateway_active('stripe_checkout')) {
27 $htmlTags['data-stripe-checkout-type'] = give_stripe_get_checkout_type();
28 }
29
30 return $htmlTags;
31 }
32 }
33