1Business::PayPal::API::UAsuetrhoCroinztartiBibuousntiRenedeqsuPsee:sr:tlP(a3Dy)oPcaulm:e:nAtPaIt:i:oAnuthorizationRequest(3)
2
3
4

NAME

6       Business::PayPal::API::AuthorizationRequest - PayPal
7       AuthorizationRequest API
8

VERSION

10       version 0.77
11

SYNOPSIS

13         use Business::PayPal::API::AuthorizationRequest;
14
15         ## see Business::PayPal::API documentation for parameters
16         my $pp = new Business::PayPal::API::DoAuthorizationRequest ( ... );
17
18         my %response = $pp->DoAuthorizationRequest (
19                                                TransactionID => $transid,
20                                                CurrencyID    => $currencyID,
21                                                Amount         => $amout,
22                                                );
23

DESCRIPTION

25       Business::PayPal::API::AuthorizationRequest implements PayPal's
26       AuthorizationRequest API using SOAP::Lite to make direct API calls to
27       PayPal's SOAP API server. It also implements support for testing via
28       PayPal's sandbox. Please see Business::PayPal::API for details on using
29       the PayPal sandbox. This request is only used with "Order" type
30       Authorizations. An "Order" must first be placed using the
31       ExpressCheckout module. DirectPayment authorizations can only be used
32       for "Basic" authorizations.
33
34   AuthorizationRequest
35       Implements PayPal's AuthorizationRequest API call. Supported parameters
36       include:
37
38         TransactionID
39         Amount
40         currencyID (defaults to 'USD' if not supplied)
41
42       as described in the PayPal "Web Services API Reference" document. The
43       default currencyID setting is 'USD' if not otherwise specified.
44
45       Returns a hash containing the results of the transaction.
46
47       Example:
48
49         my %resp = $pp->DoAuthorizationRequest (
50                                                 TransactionID => $trans_id,
51                                                 Amount        => '15.00',
52                                                 );
53
54         unless( $resp{Ack} ne 'Success' ) {
55             for my $error ( @{$response{Errors}} ) {
56                 warn "Error: " . $error->{LongMessage} . "\n";
57             }
58         }
59
60   ERROR HANDLING
61       See the ERROR HANDLING section of Business::PayPal::API for information
62       on handling errors.
63
64   EXPORT
65       None by default.
66

SEE ALSO

68       <https://developer.paypal.com/en_US/pdf/PP_APIReference.pdf>
69

AUTHORS

71       ·   Scott Wiersdorf <scott@perlcode.org>
72
73       ·   Danny Hembree <danny@dynamical.org>
74
75       ·   Bradley M. Kuhn <bkuhn@ebb.org>
76
78       This software is copyright (c) 2006-2017 by Scott Wiersdorf, Danny
79       Hembree, Bradley M. Kuhn.
80
81       This is free software; you can redistribute it and/or modify it under
82       the same terms as the Perl 5 programming language system itself.
83
84
85
86perl v5.32.0                    Bu2s0i2n0e-s0s7:-:2P8ayPal::API::AuthorizationRequest(3)
Impressum