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