Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: patrick [...] scnv.net
Cc:
AdminCc:

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



Subject: Possible bug in deleteCustomerProfile
Date: Thu, 7 Oct 2010 13:43:41 -0700
To: bug-Business-AuthorizeNet-CIM [...] rt.cpan.org
From: Patrick <patrick [...] scnv.net>
The "validationMode" element is not valid for "deleteCustomerProfileRequest". This element should not be included if "test_mode" is true. Including this element generates the following error: The element \'deleteCustomerProfileRequest\' in namespace \'AnetApi/xml/v1/schema/AnetApiSchema.xsd\' has invalid child element \'validationMode\' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd\'. sub deleteCustomerProfile { my ( $self, $customerProfileId ) = @_; my $xml; my $writer = XML::Writer->new( OUTPUT => \$xml ); $writer->startTag( 'deleteCustomerProfileRequest', 'xmlns' => 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' ); $writer->startTag('merchantAuthentication'); $writer->dataElement( 'name', $self->{login} ); $writer->dataElement( 'transactionKey', $self->{transactionKey} ); $writer->endTag('merchantAuthentication'); $writer->dataElement( 'customerProfileId', $customerProfileId ); -- if ( $self->{test_mode} ) { -- $writer->dataElement( 'validationMode', 'testMode' ); -- } $writer->endTag('deleteCustomerProfileRequest'); $xml = '<?xml version="1.0" encoding="utf-8"?>' . "\n" . $xml; print "<!-- $xml -->\n\n" if $self->{debug}; my $resp = $self->{ua} ->post( $self->{url}, Content => $xml, 'Content-Type' => 'text/xml' ); print "<!-- " . $resp->content . " -->\n\n" if $self->{debug}; my $d = XMLin( $resp->content, SuppressEmpty => '' ); return $d; } Thank you, Patrick -- "I believe that banking institutions are more dangerous to our liberties than standing armies. If the American people ever allow private banks to control the issue of their currency, first by inflation, then by deflation, the banks and corporations that will grow up around [the banks] will deprive the people of all property until their children wake-up homeless on the continent their fathers conquered. The issuing power should be taken from the banks and restored to the people, to whom it properly belongs." -Thomas Jefferson
Sorry, I missed this until I check the RT today. it's applied in 0.04 and on the way CPAN. Thanks