cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this solution

Thank you RaynorC1emen7 for your help and pointing that out.

 

Yes the xml node sequence was actually wrong and its 'refTransId'  and not refId.

The refTransId node should be after the payment node.

 

And yes the XXXX masked expiration date works too :).

 

Heres the correct code:

 

$this->_constructXml("createTransactionRequest");	        
$transactionRequest = $this->_xml->addChild("transactionRequest");
$transactionRequest->addChild("transactionType","refundTransaction");
($params['amount'] ? $transactionRequest->addChild("amount", $params['amount']) : null);
payment = $transactionRequest->addChild("payment");
$paymentCreditCard = $payment->addChild("creditCard");
$paymentCreditCard->addChild("cardNumber", 'XXXX0027');		        
$paymentCreditCard->addChild("expirationDate", "XXXX");
($params['transID'] ? $transactionRequest->addChild("refTransId", $params['transID']) : null);
$result = $this->makeRequest();

 

And heres the link for the correct xml format 

http://community.developer.authorize.net/t5/Integration-and-Testing/Looking-for-well-formed-XML-for-...

 

 

View solution in original post

Who Me Too'd this solution