Subject: | Improper coding of lineItem tags in createCustomerProfileTransactionRequest |
The "lineitems" starting/ending tag isn't handled correctly for multiple
lineitems. Following is a workaround in the cim.pm around line 295
# this code fixed by Cal Killen 10-22-2012 The startTag and endTag
for 'lineItems' was outside the loop
# each line item has to be separated by the start and end for
authorize.net
# $writer->startTag('lineItems'); wrong
foreach my $lineItem (@lineItems) {
$writer->startTag('lineItems');
foreach my $k (
'itemId', 'name', 'description', 'quantity',
'unitPrice', 'taxable'
)
{
$writer->dataElement( $k, $lineItem->{$k} )
if exists $lineItem->{$k};
}
$writer->endTag('lineItems');
}
# $writer->endTag('lineItems'); wrong