X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=t%2F20emit.t;h=8ba4804bc1a528d8c6728a3dfb88b0039378e29a;hb=aee9564f2cae2cd7b63aba4d52105dbf24422bae;hp=1f24ea1a1ce6c9b12faea4ca099d43b810a0031d;hpb=9269574aa82993a70a22137949980ba5b87efe8f;p=Business-OnlinePayment-InternetSecure.git
diff --git a/t/20emit.t b/t/20emit.t
index 1f24ea1..8ba4804 100755
--- a/t/20emit.t
+++ b/t/20emit.t
@@ -1,6 +1,6 @@
-# vim:set syntax=perl:
+# vim:set syntax=perl encoding=utf-8:
-use Test::More tests => 4 + 2;
+use Test::More tests => 4 + 3;
BEGIN { use_ok('Business::OnlinePayment') };
BEGIN { use_ok('Business::OnlinePayment::InternetSecure') };
@@ -32,7 +32,7 @@ use constant TRANSACTIONS => (
amount => undef,
currency => 'USD',
- taxes => 'GST PST',
+ taxes => 'HST',
description => [
{
@@ -44,11 +44,12 @@ use constant TRANSACTIONS => (
{
amount => 5.65,
description => 'Shipping',
+ taxes => 'GST PST',
},
{
amount => 10.00,
description => 'Some HST example',
- taxes => 'HST',
+ taxes => [ 'GST', 'PST' ],
},
],
},
@@ -60,9 +61,24 @@ use constant TRANSACTIONS => (
card_number => '5111-1111-1111-1111',
exp_date => '7/2004',
- name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
+ name => "\x{201c}Fr\x{e9}d\x{e9}ric Bri\x{e8}re\x{201d}",
amount => 12.95,
+ description => "Box o' goodies",
+ currency => 'USD',
+ taxes => 'GST',
+ },
+ {
+ _test => -1,
+
+ action => 'Normal Authorization',
+
+ card_number => '5111-1111-1111-1111',
+ exp_date => '0704',
+
+ name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
+
+ amount => 13.95,
},
);
@@ -95,7 +111,7 @@ __DATA__
2004
1
000
- 9.99::5::a 001::Some product::{USD}{GST}{PST}|5.65::1::::Shipping::{USD}{GST}{PST}|10.00::1::::Some HST example::{USD}{HST}
+ 9.99::5::a 001::Some product::{USD}{HST}|5.65::1::::Shipping::{USD}{GST}{PST}|10.00::1::::Some HST example::{USD}{GST}{PST}
Frédéric Brière
123 Street
@@ -124,7 +140,36 @@ __DATA__
2004
0
- 12.95::1::::::{CAD}{TEST}
+ 12.95::1::::Box o' goodies::{USD}{GST}{TEST}
+ ?Frédéric Brière?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0000
+ 5111111111111111
+ 07
+ 2004
+ 0
+
+ 13.95::1::::::{CAD}{TESTD}
Frédéric Brière