Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 2
Registered: ‎10-01-2015
Accepted Solution

Refund Trouble: invalid child element 'creditCardNumberMasked'

I'm having trouble with refunds. Not sure what information I need to provide to be helpful but I'll do my best.

 

Here is my error.

 

E00003
"The element 'profileTransRefund' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'creditCardNumberMasked' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."

 

I've reviewed the documentation which, IMO, makes detecting the proper level for XML elements quite hard so I'm thinking that's where the problem is.

 

The customer profile and payment profile are actually empty in the request and we're including the transaction ID.

 

So inside my profileTransRefund I have this, please excuse it's var_dump from PHP and not the XML.

object(stdClass)#9 (5) {
["amount"]=>
string(10) "0000000.00"
["customerProfileId"]=>
string(0) ""
["customerPaymentProfileId"]=>
string(0) ""
["transId"]=>
string(10) "NUMBERREMOVED"
["creditCardNumberMasked"]=>
string(8) "XXXX0000"
}

 

Where am I supposed to put my creditCardNumberMasked?

 


Accepted Solutions
Solution
Accepted by topic author NathanStiles
‎10-08-2015 11:55 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Refund Trouble: invalid child element 'creditCardNumberMasked'

here the xml guide

http://www.authorize.net/content/dam/authorize/documents/CIM_XML_guide.pdf

 

The order matter for their xml

ccmasked# should be before transactionid

 

View solution in original post


All Replies
Solution
Accepted by topic author NathanStiles
‎10-08-2015 11:55 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Refund Trouble: invalid child element 'creditCardNumberMasked'

here the xml guide

http://www.authorize.net/content/dam/authorize/documents/CIM_XML_guide.pdf

 

The order matter for their xml

ccmasked# should be before transactionid

 

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: Refund Trouble: invalid child element 'creditCardNumberMasked'

You might also look at our new API Reference which includes a console to try it and sample code if you are using our SDK.

 

http://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction

 

Richard

 

Highlighted
Member
Posts: 2
Registered: ‎10-01-2015

Re: Refund Trouble: invalid child element 'creditCardNumberMasked'

Awesome thank you both for taking the time to help me with this.