Busine...Request(3pm)
π 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: theDoReauthorizationis not allowed before the three day grace period set for the originalAuthorizeRequest. 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 β
- <https://developer.paypal.com/en_US/pdf/PP_APIReference.pdf> β the sacred text, go read it π
π AUTHORS π
- Scott Wiersdorf
<scott@perlcode.org> - Danny Hembree
<danny@dynamical.org> - Bradley M. Kuhn
<bkuhn@ebb.org>
three legends, one module. we stan. π«Ά
π COPYRIGHT AND LICENSE π
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
- ubuntu noble: libbusiness-paypal-api-perl 0.77-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbusiness-paypal-api-perl 0.77-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbusiness-paypal-api-perl 0.77-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms