Business::OnlinePayment::Braintree - Online payment processing through Braintree
Version 0.020
use Business::OnlinePayment; $tx = new Business::OnlinePayment('Braintree', merchant_id => 'your merchant id', public_key => 'your public key', private_key => 'your private key', ); $tx->test_transaction(1); # sandbox transaction for development and tests $tx->content(amount => 100, card_number => '4111 1111 1111 1111', expiration => '1212'); $tx->submit(); if ($tx->is_success) { print "Card processed successfully: " . $tx->authorization . "\n"; } else { print "Card was rejected: " . $tx->error_message . "\n"; }
Online payment processing through Braintree based on Net::Braintree.
The documentation for Net::Braintree is located at https://www.braintreepayments.com/docs/perl.
This is supposed to cover the complete Braintree Perl API finally.
Submits transaction to Braintree gateway.
Performs sale transaction with Braintree. Used both for settlement ($submit is a true value) and authorization ($submit is a false value).
Sets defaults for the Braintree merchant id, public and private key.
Stefan Hornburg (Racke), <racke at linuxia.de>
<racke at linuxia.de>
Please report any bugs or feature requests to bug-business-onlinepayment-braintree at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Business-OnlinePayment-Braintree. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-business-onlinepayment-braintree at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Business::OnlinePayment::Braintree
You can also look for information at:
Github issues (report bugs here)
https://github.com/interchange/Business-OnlinePayment-Braintree/issues
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Business-OnlinePayment-Braintree
CPAN Ratings
http://cpanratings.perl.org/d/Business-OnlinePayment-Braintree
Search CPAN
http://search.cpan.org/dist/Business-OnlinePayment-Braintree/
Grant for the following enhancements (RT #88525):
Peter Mottram for the following enhancements (GH #5):
Set failure status from error codes provided by Braintree.
Pass cvv to Braintree.
Evan Brown (GH #7, #8):
Add support for post authorization action. Add support for the void action and the card_token transaction result method.
Copyright 2011-2016 Stefan Hornburg (Racke).
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Net::Braintree
To install Business::OnlinePayment::Braintree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::OnlinePayment::Braintree
CPAN shell
perl -MCPAN -e shell install Business::OnlinePayment::Braintree
For more information on module installation, please visit the detailed CPAN module installation guide.