5 use POSIX qw(strftime);
6 use Test::More tests => 1;
8 use Business::OnlinePayment;
11 login => '124freeside',
12 password => 'freeside124',
13 action => "Normal Authorization",
15 description => "Business::OnlinePayment::FirstDataGlobalGateway test",
16 card_number => '4111111111111111',
18 expiration => '12/20',
22 address => '1234 Soybean Ln.',
24 state => 'CA', #where else?
28 my $tx = new Business::OnlinePayment( 'FirstDataGlobalGateway' );
30 $tx->content( %content );
32 $tx->test_transaction(1);
36 is( $tx->is_success, 1, 'Test transaction successful')
37 or diag('iATS Payments error: '. $tx->error_message);