<?php

namespace Objectiv\Plugins\Checkout\Compatibility\Plugins;

use Objectiv\Plugins\Checkout\Compatibility\CompatibilityAbstract;

class Tickera extends CompatibilityAbstract {
	public function is_available(): bool {
		global $tc_woocommerce_bridge;

		return ( ! empty( $tc_woocommerce_bridge ) );
	}

	public function run() {
		global $tc_woocommerce_bridge;

		add_action( 'cfw_checkout_before_payment_method_terms_checkbox', array( $tc_woocommerce_bridge, 'render_tc_owner_fields' ) );
	}
}
