summaryrefslogtreecommitdiff
path: root/InternetSecure.pm
diff options
context:
space:
mode:
authorfbriere <fbriere>2006-02-18 00:31:24 +0000
committerfbriere <fbriere>2006-02-18 00:31:24 +0000
commitaac0b428135cafe2824920e913c319e91fddb0ef (patch)
tree0593e33bcefa192c936a05faaa71da26b315cb15 /InternetSecure.pm
parent227f87ababc68077ac00d2fb5ee52f080370cbff (diff)
Allow for taxes to be a reference
Diffstat (limited to 'InternetSecure.pm')
-rwxr-xr-xInternetSecure.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/InternetSecure.pm b/InternetSecure.pm
index a7b1d0f..9aa2d8d 100755
--- a/InternetSecure.pm
+++ b/InternetSecure.pm
@@ -108,9 +108,11 @@ sub prod_string {
my @flags = ($currency);
- foreach (split ' ' => uc($data{taxes} || '')) {
- croak "Unknown tax code $_" unless /^(GST|PST|HST)$/;
- push @flags, $_;
+ foreach (ref $data{taxes} ?
+ @{ $data{taxes} } :
+ split(' ' => $data{taxes} || '')) {
+ croak "Unknown tax code $_" unless /^(GST|PST|HST)$/i;
+ push @flags, uc $_;
}
if ($self->test_transaction) {