Mailchimp_Helpers::validate_trigger()

validate_trigger

Contents


Return Return

(void)


Source Source

File: src/integrations/mailchimp/helpers/mailchimp-helpers.php

	public function validate_trigger() {
		$msg = 'true';
		try {
			Api_Server::charge_credit();
		} catch ( \Exception $e ) {
			$msg = $e->getMessage();
		}
		$this->log( '[2/3. Validating found trigger]. Result: ' . $msg );
		return 'true' === $msg;
	}