summaryrefslogtreecommitdiff
path: root/t/introspection.t
diff options
context:
space:
mode:
authorivan <ivan>2009-11-24 02:54:42 +0000
committerivan <ivan>2009-11-24 02:54:42 +0000
commit5c008be3b9bb7eb5c7423cf174399c57a19ee707 (patch)
tree6a22e3c2c8acde2536fe43588cf578b0037adeea /t/introspection.t
parent5b03d96b42ff9aa46bda1ad21dd674c2713ace83 (diff)
add introspection info used in Business::OnlinePayment 3.01+
Diffstat (limited to 't/introspection.t')
-rw-r--r--t/introspection.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/introspection.t b/t/introspection.t
new file mode 100644
index 0000000..38a76f1
--- /dev/null
+++ b/t/introspection.t
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+
+use Test::More;
+
+eval 'use Business::OnlinePayment 3.01;';
+if ( $@ ) {
+ plan skip_all => 'Business::OnlinePayment 3.01+ not available';
+} else {
+ plan tests => 1;
+}
+
+my($login, $password, @opts) = ('TESTMERCHANT', '',
+ 'default_Origin' => 'RECURRING' );
+
+my $tx = Business::OnlinePayment->new("IPPay", @opts);
+
+ok( $tx->info('CC_void_requires_card') == 1, 'CC_void_requires_card introspection' );