File: TransactionFetcher.pm

package info (click to toggle)
libbusiness-paypal-api-perl 0.77-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 488 kB
  • sloc: perl: 2,503; makefile: 9
file content (26 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package Example::TransactionFetcher;

use Moo;
use MooX::Options;

use Business::PayPal::API::GetTransactionDetails;
use Data::Printer;

option transaction_id => (
    is       => 'ro',
    format   => 's',
    required => 1,
    doc      => 'transaction id',
);

with 'Example::Role::Auth';

sub find {
    my $self     = shift;
    my %response = $self->_client->GetTransactionDetails(
        TransactionID => $self->transaction_id );

    p %response;
}

1;