New title
payment_gateways->get_available_payment_gateways(); $enabled_gateways = []; if( $gateways ) { foreach( $gateways as $gateway ) { if( $gateway->enabled == 'yes' ) { $enabled_gateways[] = $gateway; } } } else { echo 'No payments methods'; } //print_r( $enabled_gateways ); ?>