1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 WRAPPER "opac/parts/myopac/base.tt2";
5 myopac_main_page = "pay" %]
6 <div id="myopac_summary_div">
7 [% IF ctx.payment_response.textcode %]
8 <div class="payment-error">
9 <span title="[% ctx.payment_response.textcode %]">
10 [% ctx.payment_response.desc || ctx.payment_response.textcode %]
12 [% ctx.payment_response.note %]
13 [% ctx.payment_response.payload.error_message %]
17 url_args = {xact => [], xact_misc => []};
18 FOR k IN ['xact', 'xact_misc'];
19 FOR val IN CGI.param(k);
20 url_args.$k.push(val);
23 retry_url = mkurl(ctx.opac_root _ '/myopac/main_payment_form', url_args, 1);
25 <a href="[% retry_url %]">[% l('Go back') %]</a>
26 [% l('to try again or to cancel this payment attempt.') %]
29 <p><big>[% l('Your payment has been approved.') %]</big></p>
30 [% IF ctx.printable_receipt.template_output;
32 FOR p IN ctx.payment_response.payments;
33 print_args.push('payment=' _ p);
35 <p>[ <a href="[% ctx.opac_root %]/myopac/receipt_print?[% print_args.join('&') %]"
37 onclick="try { print_node('printable-receipt'); } catch (e) { window.print(); } return false;">[% l('Print receipt') %]</a> ]</p>
38 <tt id="printable-receipt">
39 [% ctx.printable_receipt.template_output.data %]
42 <div class="payment-error">
44 'Error creating receipt: [_1]',
45 (ctx.printable_receipt.textcode ? ctx.printable_receipt.textcode _ ' / ' _ ctx.printable_receipt.desc : 0) ||
46 ctx.printable_receipt.error_output.data ||
47 l('No receipt data returned from server')
51 <p>[ <a href="[% ctx.opac_root %]/myopac/main">[%
52 l("Back to Account Summary") %]</a> ]</p>