Skip to content

Instantly share code, notes, and snippets.

@centerax
Created February 22, 2013 12:16
Show Gist options
  • Save centerax/5013051 to your computer and use it in GitHub Desktop.
Save centerax/5013051 to your computer and use it in GitHub Desktop.
<?php
if($this->getParentBlock()->getInfo()->getOrder()->getSagepayInfo() && $this->getParentBlock()->getInfo()->getOrder()->getSagepayInfo()->getTxType() != Ebizmarts_SagePaySuite_Model_Api_Payment::REQUEST_TYPE_AUTHENTICATE){
return;
}
$authorises = $this->getParentBlock()->getAuthorisesCollection();
if($authorises->getSize()):
?>
<div class="grid" id="sagepay-authorises-table">
<?php echo $this->helper('sagepaysuite')->__('<strong>AUTHORISE</strong>s'); ?>
<table class="data" cellspacing="0">
<thead>
<tr class="headings">
<th><?php echo $this->helper('sagepaysuite')->__('Status'); ?></th>
<th><?php echo $this->helper('sagepaysuite')->__('Amount'); ?></th>
<th><?php echo $this->helper('sagepaysuite')->__('VPS Tx Id'); ?></th>
<th><?php echo $this->helper('sagepaysuite')->__('Auth No'); ?></th>
<th><?php echo $this->helper('sagepaysuite')->__('Date'); ?></th>
</tr>
</thead>
<tbody class="even">
<?php foreach($authorises as $_authorise): ?>
<tr class="border">
<td><?php echo $_authorise->getStatus(); ?></td>
<td><?php echo $this->helper('core')->currency($_authorise->getAmount()); ?></td>
<td><?php echo $this->getParentBlock()->detailLink($_authorise->getVpsTxId()); ?></td>
<td><?php echo $_authorise->getTxAuthNo(); ?></td>
<td><?php echo $this->formatDate(new Zend_Date(strtotime($_authorise->getActionDate())), 'short', true); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment