NAME

PagSeguro::API::Notification - PagSeguro API notifications end-points

SYNOPSIS

use PagSeguro::API;
my $ps = PagSeguro::API->new;

# notification
my $n = $ps->notification;

# load notification by code
my $notification = $n->load('766B9C-AD4B044B04DA-77742F5FA653-E1AB24');


# notification returns perl hash
say $notification->{code}; # 00000000-0000-0000-0000-000000000000

DESCRIPTION

PagSeguro::API::Notification is a class that provide access to transaction api search methods.

ACCESSORS

Public properties and their accessors

resource

my $t = $ps->notification;
say $t->resource('BASE_URI');

PagSeguro::API::Resource is a container that store all connectoin url parts and some other things;

METHODS

new

# new instance
my $ps = PagSeguro::API::Notification->new

See PagSeguro::API for more information.

load

my $n = $ps->notification;
my $notification = $n->load('00000000-0000-0000-0000-000000000000');

say $notification->{code};

Load a notification data and return as perl hashref if success.

AUTHOR

2013 (c) Bivee http://bivee.com.br

Daniel Vinciguerra <daniel.vinciguerra@bivee.com.br>

COPYRIGHT AND LICENSE

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.