Busine...equest(3pm)
π Business::PayPal::API::VoidRequest β the manual, but make it cute π
okay bestie, gather round, because this is Busine...equest(3pm) from the User Contributed Perl Documentation, and it's literally the PayPal VoidRequest API wrapper. No cap. Let's get into it. π«Ά
β¨ NAME β¨
Business::PayPal::API::VoidRequest β it's the PayPal VoidRequest API, and it's living in the Business::PayPal::API family. That's it, that's the name, slay. π
πΈ VERSION πΈ
version 0.77 β yes, she's vintage, she's iconic, she's been around. π
π¦ SYNOPSIS π¦
okay so here's the whole vibe, verbatim, don't touch a character:
use Business::PayPal::API::VoidRequest;
# see Business::PayPal::API documentation for parameters
my $pp = Business::PayPal::API::VoidRequest->new( ... );
my %response = $pp->DoVoidRequest(
AuthorizationID => $transid Note => "Please come again!" );
literally that's it. you load the module, you build your object (and bestie, the params are all documented over in Business::PayPal::API, go look), then you call DoVoidRequest. easy. β¨
π DESCRIPTION π
So Business::PayPal::API::VoidRequest implements PayPal's VoidRequest 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.
It also implements support for testing via PayPal's sandbox β so you can play around without setting real money on fire. π For the deets on using the PayPal sandbox, please see Business::PayPal::API. π
π« DoVoidRequest π«
This is the one that does the thing: it implements PayPal's DoVoidRequest API call. The supported parameters include:
AuthorizationID
Note
The AuthorizationID is the original ID. Not a subsequent ID from a ReAuthorizationRequest. Like, the original original. Don't come in here with some re-auth ID and expect it to work, that's not the assignment. And the Note is a 255 character message for whatever purpose you deem fit β vent, send love, write a haiku, your call. π
It returns a hash containing the results of the transaction. The Ack element is likely the only useful return value at the time of this revision β and the reason is literally spelled out: the Nov. 2005 errata to the Web Services API indicates that the documented fields 'AuthorizationID', 'GrossAmount', etc. are not returned with this API call. so like, don't go looking for them, they're not coming. π
Example time:
my %resp = $pp->DoVoidRequest( AuthorizationID => $trans_id,
Note => 'Sorry about that.' );
unless( $resp{Ack} !~ /Success/ ) {
for my $error ( @{$response{Errors}} ) {
warn "Error: " . $error->{LongMessage} . "\n";
}
}
π¨ ERROR HANDLING π¨
Errors? Handled. Just go read the ERROR HANDLING section of Business::PayPal::API for the info on handling errors. That's where the lore lives. π
π EXPORT π
None by default. Nothing gets exported unless you ask. She's low maintenance like that. π
π₯ SEE ALSO π₯
- <https://developer.paypal.com/en_US/pdf/PP_APIReference.pdf> β the sacred text, go read it, iykyk π
π AUTHORS π
The legends who made this happen:
- Scott Wiersdorf
<scott@perlcode.org> - Danny Hembree
<danny@dynamical.org> - Bradley M. Kuhn
<bkuhn@ebb.org>
three icons, 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. so like, go wild, but respectfully. β¨
fr fr, that's the whole page. every flag, every field, every warning β nothing skipped, nothing invented. π
okay bestie that's a wrap!! this page ships with perl v5.36.0 and it's dated 2022-08-28 β and yes, that is the same timestamp for the header and the footer, iconic consistency. bye pookie, go void some transactions responsibly π¦π π
π¦ 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