diff options
author | Mark Wells <mark@freeside.biz> | 2014-08-14 19:42:11 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-08-14 19:42:11 -0700 |
commit | 5587d058a0fc74e92836ad5715c99003314da4d5 (patch) | |
tree | 96d5eebb27cfaf8af4a401ce44f219c57219bd2d /httemplate/misc | |
parent | 3531cb68ad0ee6e02ff451601012cbee42745af8 (diff) |
adjust EFT Canada processing delay based on time of day, and warn the user, #20384
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/xmlhttp-pay_batch-note.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/misc/xmlhttp-pay_batch-note.html b/httemplate/misc/xmlhttp-pay_batch-note.html new file mode 100644 index 000000000..ef5901631 --- /dev/null +++ b/httemplate/misc/xmlhttp-pay_batch-note.html @@ -0,0 +1,18 @@ +<% $note %>\ +<%init> + +my ($batchnum, $format) = $cgi->param('arg'); + +my $note = ''; +if ( $batchnum =~ /^(\d+)$/ ) { + my $pay_batch = FS::pay_batch->by_key($batchnum); + if ( $pay_batch and $format =~ /^(\w+)$/ ) { + my $class = "FS::pay_batch::$format"; + if ( $class->can('download_note') ) { + # now we can actually do something + $note = $class->download_note($pay_batch); + } + } +} + +</%init> |