Tribe__Tickets_Plus__Commerce__WooCommerce__Main::is_wc_paypal_gateway_active()
Source
File: src/Tribe/Commerce/WooCommerce/Main.php
public static function is_wc_paypal_gateway_active() {
// Add PayPal delay settings if PayPal is active and enabled.
$woo_gateways = WC()->payment_gateways->get_available_payment_gateways();
$pp_gateways = array( 'paypal', 'ppec_paypal' );
foreach ( $pp_gateways as $gateway ) {
// check if gateway exists and is enabled
if ( ! empty( $woo_gateways[ $gateway ] ) && $woo_gateways[ $gateway ]->enabled ) {
return true;
}
}
return false;
}