Busine...Request(3pm)

πŸ“¦
version 0.77 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Busine...Request β€” the Business::PayPal::API::ReauthorizationRequest bestie era πŸ’–

okay so this page is from the User Contributed Perl Documentation crew, and the module itself is literally called Business::PayPal::API::ReauthorizationRequest. She's giving "I talk to PayPal's SOAP API so you don't have to" and honestly? Iconic. 🫢

VERSION: version 0.77 ✨


✨ NAME ✨

Business::PayPal::API::ReauthorizationRequest β€” it's the PayPal ReauthorizationRequest API, wrapped up cute for you πŸ’…


🌸 VERSION 🌸

version 0.77 β€” yes bestie, that's the one.


πŸ¦‹ SYNOPSIS πŸ¦‹

use Business::PayPal::API::ReauthorizationRequest;

## see Business::PayPal::API documentation for parameters
my $pp = Business::PayPal::API::ReauthorizationRequest->new( ... );

my %response = $pp->DoReauthorizationRequest(
    AuthorizationID => $transid,
    Amount          => $amount,
    CurrencyID      => $currencyID
);

like... that's it. that's the whole vibe. construct the object, call the method, get your hash back. no cap πŸŽ€


πŸ’œ DESCRIPTION πŸ’œ

So Business::PayPal::API::ReauthorizationRequest implements PayPal's DoReauthorizationRequest API, and it does it by using SOAP::Lite to make direct API calls to PayPal's SOAP API server. Direct. No middleman. Main character energy fr fr. πŸ”₯

She also implements support for testing via PayPal's sandbox, because obviously you're not out here rawdogging production on the first try. Please see Business::PayPal::API for the deets on how to use the PayPal sandbox πŸ‘‘

🌈 DoReauthorizationRequest 🌈

This implements PayPal's DoReauthorizationRequest API call. The supported parameters include, bestie:

AuthorizationID
Amount
currencyID (defaults to 'USD' if not supplied)

...all as described in the PayPal "Web Services API Reference" document. The default currencyID setting is 'USD' if it's not otherwise specified. πŸ“

lowkey important: the DoReauthorization is not allowed before the three day grace period set for the original AuthorizeRequest. so don't come crying to me on day one. the grace period said what it said. πŸ’€

It returns a hash containing the results of the transaction. πŸ“

Example, because we love a lil demo:

my %resp = $pp->DoReauthorizationRequest (
                                   AuthorizationID => $trans_id,
                                   Amount          => '15.00',
                                   CurrencyID      => 'USD'
                                    );

unless( $resp{Ack} !~ /Success/ ) {
    for my $error ( @{$response{Errors}} ) {
        warn "Error: " . $error->{LongMessage} . "\n";
    }
}

πŸ™ˆ ERROR HANDLING πŸ™ˆ

Go look at the ERROR HANDLING section of Business::PayPal::API for the info on handling errors. she covers it there, I'm just the messenger 🧚

πŸ’… EXPORT πŸ’…

None by default. nothing gets exported, she's private like that. periodt.


⭐ SEE ALSO ⭐


πŸ‘‘ AUTHORS πŸ‘‘

  • Scott Wiersdorf <scott@perlcode.org>
  • Danny Hembree <danny@dynamical.org>
  • Bradley M. Kuhn <bkuhn@ebb.org>

three legends, one module. we stan. 🫢


This software is copyright (c) 2006-2017 by Scott Wiersdorf, Danny Hembree, Bradley M. Kuhn.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, legally speaking ✨


and that's the whole page, bestie!! πŸ’– this was generated by perl v5.36.0 and dated 2022-08-28, so if you're reading this era of the docs, you're exactly where you're supposed to be. mwah 🫢🌸

πŸ“¦ where this page comes from