Skip Menu |

This queue is for tickets about the Business-AuthorizeNet-CIM CPAN distribution.

Report information
The Basics
Id: 80389
Status: resolved
Priority: 0/
Queue: Business-AuthorizeNet-CIM

People
Owner: Nobody in particular
Requestors: ckillen [...] todoitagain.com
Cc:
AdminCc:

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



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
very sorry that I missed it and I accept a patch in github and released 0.07. Thanks