PagSeguro::API - UOL PagSeguro Payment Gateway API Module
use PagSeguro::API; # new instance my $ps = PagSeguro::API->new( email=> 'foo@bar.com', token=>'95112EE828D94278BD394E91C4388F20' ); # load transaction by code my $transaction = $ps->transaction ->load('TRANSACTION_CODE_HERE'); # api xml response to perl hash say $transaction->{sender}->{name}; # Foo Bar
Public properties and their accessors
# get or set email property $ps->email('foo@bar.com'); say $ps->email;
Email is a required properties to access HTTP GET based API urls.
# get or set token property $ps->token('95112EE828D94278BD394E91C4388F20'); say $ps->token;
Token is a required properties to access HTTP GET based API urls.
my $ps = PagSeguro::API->new;
or pass paramethers...
my $ps = PagSeguro::API->new( email => 'foo@bar.com', token => '95112EE828D94278BD394E91C4388F20' );
# getting transaction class instance my $t = $ps->transaction; # setting new transaction instance $ps->transaction( PagSeguro::API::Transaction->new );
PagSeguro::API::Transaction is a class that will provide access to transaction methods for API.
See more informations about at PagSeguro::API::Transaction.
Please, send bug reports to my CPAN user email at dvinci@cpan.org.
git-repository:
https://github.com/dvinciguerra/p5-pagseguro-api
Daniel Vinciguerra <daniel.vinciguerra@bivee.com.br>
2013 (c) Bivee http://bivee.com.br
This software is copyright (c) 2013 by Bivee.
This is a free software; you can redistribute it and/or modify it under the same terms of Perl 5 programming languagem system itself.
To install PagSeguro::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PagSeguro::API
CPAN shell
perl -MCPAN -e shell install PagSeguro::API
For more information on module installation, please visit the detailed CPAN module installation guide.