Tribe__Events__Community__Tickets__Gateway__PayPal::is_available()

Returns whether or not all of the required fields have been entered


Source

File: src/Tribe/Gateway/PayPal.php

	public function is_available() {
		$gateway = tribe( 'community-tickets.main' )->gateway( 'PayPal' );

		if (
			empty( $gateway->api_username )
			|| empty( $gateway->api_password )
			|| empty( $gateway->api_signature )
			|| empty( $gateway->application_id )
			|| empty( $gateway->invoice_prefix )
			|| empty( $gateway->receiver_email )
		) {
			return false;
		}

		return true;
	}//end is_available