1 BEGIN { $| = 1; print "1..2\n"; }
3 use Business::OnlinePayment;
5 for my $testnum ( 1 .. 2 ) {
6 &run_xaction($testnum);
13 my $tx = new Business::OnlinePayment("StGeorge",
14 # 'cert_path' => './java.cert',
15 'cert_path' => '/home/ivan/Business-OnlinePayment-StGeorge/t2/java.cert',
20 password => 'certphrase',
22 action => 'Normal Authorization',
23 description => 'Business::OnlinePayment::LinkPoint visa test',
27 address => '123 Anystreet',
32 email => 'ivan-stgeorge@420.am',
33 card_number => '4564456445644564',
34 expiration => '12/2005',
37 $tx->test_transaction(1);
41 if($tx->is_success()) {
42 print "ok $testnum\n";
43 $auth = $tx->authorization;
44 warn "********* $auth ***********\n";
46 print "not ok $testnum\n";
47 warn '***** '. $tx->error_message. " *****\n";