Business::Payment - Payment Processing Library
use Business::Payment; my $bp = Business::Payment->new( processor => Business::Payment::Processor::Test::True->new ); my $charge = Business::Payment::Charge->new( amount => 10.00 # Something Math::Currency can parse ); my $result = $bp->handle($charge); if($result->success) { print "Success!\n"; } else { print "Failed: ".$result->error_code.": ".$result->error_message."\n"; }
This module is currently under development and not recommended for production use. The API is unstable! Contributions and suggestions are welcome.
Business::Payment is a payment abstraction library, primarily meant to be used in front of payment processor libraries. The expected use is for credit cards but care is taken to assume little and to allow the implementor to choose what functionality is needed, leaving the door open for other payment processing needs.
Cory G Watson, <gphat@cpan.org> J. Shirley, <jshirley+cpan@gmail.com>
<gphat@cpan.org>
<jshirley+cpan@gmail.com>
Copyright 2009 Cold Hard Code, LLC, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Business::Payment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Payment
CPAN shell
perl -MCPAN -e shell install Business::Payment
For more information on module installation, please visit the detailed CPAN module installation guide.