-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.tpl.php
31 lines (25 loc) · 984 Bytes
/
payment.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<dl class="payment">
<dt><?php print t('Amount'); ?></dt>
<dd><?php print pgapi_format_price($transaction->amount); ?></dd>
<?php if (!empty($transaction->description)) : ?>
<dt><?php print t('Description'); ?></dt>
<dd><?php print $transaction->description; ?></dd>
<?php endif ?>
<dt><?php print t('Date'); ?></dt>
<dd><?php print format_date($transaction->changed, 'custom', ' d M Y H:i:s'); ?></dd>
<dt><?php print t('Status')?></dt>
<dd class="status-<?php print $transaction->status; ?>"><?php print pgapi_get_status($transaction->status); ?></dd>
<?php if (!empty($transaction->gateway)): ?>
<dt><?php print t('Paid with'); ?></dt>
<dd><?php
print module_invoke($transaction->gateway, 'pgapi_gw', 'display name'); ?></dd>
<?php endif ?>
<?php
if (is_array($service_details)):
foreach ($service_details as $title => $value):
echo '<dt>' . $title . '</dt>' . "\n";
echo '<dd>' . $value . '</dd>' . "\n";
endforeach;
endif;
?>
</dl>