Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Business-PayPal-API CPAN distribution.

Report information
The Basics
Id: 67386
Status: resolved
Priority: 0/
Queue: Business-PayPal-API

People
Owner: Nobody in particular
Requestors: aburt [...] tech-soft.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Single item in cart
Date: Mon, 11 Apr 2011 11:54:41 -0600
To: bug-Business-PayPal-API [...] rt.cpan.org
From: aburt [...] tech-soft.com (Andrew Burt)
Howdy - thanks for the module, it's been very helpful. I did notice one problem. If I do, for $item ( @{ $resp{PaymentItems} } ) { ... to cycle through the purchased items, it fails if there was only one item in the cart. I noticed that API/GetTransactionDetails.pm line 295 if( scalar(@$paymentitems) > 1 ) { $response{PaymentItems} = $paymentitems; } was checking for "> 1". I nudged that to >= 1 and it works. Cheers, Andrew
On Mon Apr 11 13:54:51 2011, aburt@tech-soft.com wrote: Show quoted text
> Howdy - thanks for the module, it's been very helpful. I did notice > one problem. > > If I do, > > for $item ( @{ $resp{PaymentItems} } ) { > ... > > to cycle through the purchased items, it fails if there was only one > item in the cart. > > I noticed that API/GetTransactionDetails.pm line 295 > > if( scalar(@$paymentitems) > 1 ) { > $response{PaymentItems} = $paymentitems; > } > > was checking for "> 1". I nudged that to >= 1 and it works. > > > Cheers, > > Andrew
Fixed in 0.72 Thanks for this! Olaf