Business-OnlinePayment-Braintree

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


    [BUG FIXES]

    * Execute POD tests only during release testing.
    * Split expiration date into month and year.

0.0002  Wed Dec 28 21:32:42 2011 CET

    [BUG FIXES]

    * Move extra parameters (merchant_id, private_key, public_key) to constructor (#71257).

0.0001  Tue Sep 13 14:06:34 2011 CEST

    * Initial release


README  view on Meta::CPAN


    Version 0.020

SYNOPSIS

        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();
    

lib/Business/OnlinePayment/Braintree.pm  view on Meta::CPAN


our $VERSION = '0.020';

=head1 SYNOPSIS

    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();

lib/Business/OnlinePayment/Braintree.pm  view on Meta::CPAN

=cut
    
sub set_defaults {
    my ($self, %opts) = @_;
    my $config = Net::Braintree->configuration;

    $self->build_subs(qw(card_token));

    $config->merchant_id($opts{merchant_id});
    $config->public_key($opts{public_key});
    $config->private_key($opts{private_key});

    return;
}

=head1 AUTHOR

Stefan Hornburg (Racke), C<< <racke at linuxia.de> >>

=head1 BUGS



( run in 0.256 second using v1.01-cache-2.11-cpan-a5abf4f5562 )