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
06-11-2013 04:04 AM