# give/4.15.0/src/PaymentGateways/Gateways/Stripe/Traits/FormFieldMarkup.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.0. 50 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.0/code/src/PaymentGateways/Gateways/Stripe/Traits/FormFieldMarkup.php
- Raw: https://pluginprobe.com/plugins/give/4.15.0/raw/src/PaymentGateways/Gateways/Stripe/Traits/FormFieldMarkup.php
- Modified: 2022-02-25T01:33:58+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.15.0/code/src/PaymentGateways/Gateways/Stripe/Traits/FormFieldMarkup.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\Gateways\Stripe\Traits;

trait FormFieldMarkup
{
    public function canShowFields() {
        $status       = true;
        $isConfigured = \Give\Helpers\Gateways\Stripe::isAccountConfigured();
        $isTestMode   = give_is_test_mode();
        $isSslActive  = is_ssl();

        if ( ! $isConfigured && ! $isSslActive && ! $isTestMode ) {
            // Account not configured, No SSL scenario.
            \Give_Notices::print_frontend_notice(
                sprintf(
                    '<strong>%1$s</strong> %2$s',
                    esc_html__( 'Notice:', 'give' ),
                    $this->errorMessages['accountNotConfiguredNoSsl']
                )
            );
            $status = false;

        } elseif ( ! $isConfigured ) {
            // Account not configured scenario.
            \Give_Notices::print_frontend_notice(
                sprintf(
                    '<strong>%1$s</strong> %2$s',
                    esc_html__( 'Notice:', 'give' ),
                    $this->errorMessages['accountNotConfigured']
                )
            );
            $status = false;

        } elseif ( ! $isTestMode && ! $isSslActive ) {
            // Account configured, No SSL scenario.
            \Give_Notices::print_frontend_notice(
                sprintf(
                    '<strong>%1$s</strong> %2$s',
                    esc_html__( 'Notice:', 'give' ),
                    $this->errorMessages['accountConfiguredNoSsl']
                )
            );
            $status = false;
        }

        return $status;
    }
}

```
