|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/dumoshi.com/wp-content/plugins/wpforms-lite/src/Helpers/ | |
|
Path: //home2/gazetufm/dumoshi.com/wp-content/plugins/wpforms-lite/src/Helpers/PaymentGatewayDetector.php
Size: 819 B
Permissions: 0644
<?php
namespace WPForms\Helpers;
use WPForms\SetupWizard\Service\SettingsDetector;
/**
* Payment gateway configuration checks shared across admin surfaces.
*
* @since 2.0.3
*/
class PaymentGatewayDetector {
/**
* Whether any supported payment gateway — Stripe, PayPal Commerce, Square,
* Authorize.Net, Mercado Pago, or Paystack — is configured in the current payment mode.
*
* @since 2.0.3
*
* @return bool
*/
public static function is_any_payment_gateway_configured(): bool {
$detector = new SettingsDetector();
return $detector->is_stripe_configured()
|| $detector->is_paypal_commerce_configured()
|| $detector->is_square_configured()
|| $detector->is_authorize_net_configured()
|| $detector->is_mercado_pago_configured()
|| $detector->is_paystack_configured();
}
}