Subject: | Possible Bug in createCustomerPaymentProfileRequest |
Business-AuthorizeNet-CIM 0.03
Perl v5.8.8
Linux localhost 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:20:55 EDT 2009
i686 i686 i386 GNU/Linux
There is possible issue with "createCustomerPaymentProfileRequest" in
CIM.pm module.
When trying to use this function I got error response :
'xmlns' => 'AnetApi/xml/v1/schema/AnetApiSchema.xsd',
'messages' => {
'resultCode' => 'Error',
'message' => {
'text' => 'The element
\'createCustomerPaymentProfileRequest\' in namespace
\'AnetApi/xml/v1/schema/AnetApiSchema.xsd\' has invalid child element
\'paymentProfiles\' in namespace
\'AnetApi/xml/v1/schema/AnetApiSchema.xsd\'. List of possible elements
expected: \'paymentProfile\' in namespace
\'AnetApi/xml/v1/schema/AnetApiSchema.xsd\'.',
'code' => 'E00003'
}
},
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'xmlns:xsd' => 'http://www.w3.org/2001/XMLSchema'
To fix it I modified:
$writer->startTag('paymentProfiles'); to
$writer->startTag('paymentProfile');
AND
$writer->endTag('paymentProfiles'); to
$writer->endTag('paymentProfile');
Can it be verified and patch applied ?
Thanks,
Pawel