| 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 |
|