Admin
3 years ago
Controllers
2 years ago
DataTransferObjects
3 years ago
Exceptions
4 years ago
Models
3 years ago
Repositories
4 years ago
Traits
4 years ago
ApplicationFee.php
4 years ago
DonationFormElements.php
4 years ago
DonationFormSettingPage.php
4 years ago
DonationFormElements.php
33 lines
| 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 |