4 plan skip_all => 'MERCHANT_ID environment variable not set'
5 unless defined $ENV{MERCHANT_ID};
8 BEGIN { plan tests => 1 + 2 };
10 BEGIN { use_ok('Business::OnlinePayment') };
13 my $txn = new Business::OnlinePayment 'InternetSecure',
14 merchant_id => $ENV{MERCHANT_ID};
16 $txn->test_transaction(1);
19 action => 'Normal Authorization',
21 card_number => '0000000000000000',
22 exp_date => '2004/07',
23 name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
29 is($txn->result_code, '2000', 'Result code is ok');
30 is($txn->cardholder, "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
31 'Cardholder name is encoded properly');