Cory G Watson > Business-Payment-0.02 > Business::Payment

Download:
Business-Payment-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Business::Payment - Payment Processing Library

SYNOPSIS ^

    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";
    }

NOTICE ^

This module is currently under development and not recommended for production use. The API is unstable! Contributions and suggestions are welcome.

DESCRIPTION ^

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.

AUTHOR ^

Cory G Watson, <gphat@cpan.org> J. Shirley, <jshirley+cpan@gmail.com>

COPYRIGHT & LICENSE ^

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.

syntax highlighting: