<?php

if (it_exchange_get_next_purchase_requirement_property('slug') != 'itelic-renew-product') {
    return;
}
$session = it_exchange_get_session_data('purchase_req_itelic-renew-product');
?>

<form method="POST" action="<?php 
echo esc_attr(it_exchange_get_page_url('checkout'));
?>
" class="itelic-renew-keys-checkout">

	<h3><?php 
echo _n("Renew your license key", "Renew your license keys", count($session), ITELIC\Plugin::SLUG);
?>
</h3>

	<ul>
		<?php 
foreach ($session as $product => $license) {
    ?>
			<?php 
    $product = str_replace('p', '', $product);
    ?>
			<?php 
    if ($license !== null) {
        ?>
				<?php 
        continue;
        ?>
 /**
  * Refresh the cache data from the Exchange session manager.
  *
  * @since 1.0
  */
 public function refresh()
 {
     $this->cache_data = it_exchange_get_session_data("purchase_req_{$this->slug}");
 }