1 package Business::BatchPayment;
9 use Business::BatchPayment::Processor;
10 use Business::BatchPayment::Item;
11 use Business::BatchPayment::Transport;
17 Business::BatchPayment - Batch-oriented payment processing
25 our $VERSION = '0.01';
29 use Business::BatchPayment;
31 my %options = ( merchant_id => '00451', password => 'opensesame' );
32 my $processor = Business::BatchPayment->create(MyGateway => %options);
35 push @request, Business::BatchPayment->create(Item =>
36 action => 'payment', # as opposed to 'credit'
37 payment_type => 'CC', #credit card, or 'ECHECK' for check/ACH
39 tid => '0001234', # transaction id, like a customer/order number
40 card_number => '1234123412341238',
41 expiration => '0100', # MM/YY
42 # these fields are optional
45 address => '123 Main Street',
46 address2 => 'Suite H',
51 ); # returns a Business::OnlinePayment::Item;
53 $processor->submit(@request);
55 # at some point in the future
57 my @reply = $processor->receive();
58 foreach my $item (@reply) {
59 ... process items and record successful/failed payments
66 =item create MODULE[, OPTIONS ]
68 Loads Business::BatchPayment::MODULE, then attempts to call
69 Business::BatchPayment::MODULE->new(OPTIONS).
78 $subclass = "Business::BatchPayment::$subclass";
79 Class::MOP::load_class($subclass);
87 Mark Wells, C<< <mark at freeside.biz> >>
93 You can find documentation for this module with the perldoc command.
95 perldoc Business::BatchPayment
97 Commercial support is available from Freeside Internet Services,
98 L<http://www.freeside.biz>.
100 =head1 LICENSE AND COPYRIGHT
102 Copyright 2012 Mark Wells.
104 This program is free software; you can redistribute it and/or modify it
105 under the terms of either: the GNU General Public License as published
106 by the Free Software Foundation; or the Artistic License.
108 See http://dev.perl.org/licenses/ for more information.
113 1; # End of Business::BatchPayment