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?
Solved! Go to Solution.
10-01-2015 01:01 PM
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
10-01-2015 01:21 PM
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
10-01-2015 01:21 PM
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
10-01-2015 01:35 PM
Awesome thank you both for taking the time to help me with this.
10-02-2015 05:02 AM