Yapı kredi yeni sisteminde mac oluşturup göndermemizi istiyor Posnet OOS classlarını kullanıyorum

$node_mac= $this->createElement('mac');
$node_macTextNode = $this->createTextNode($posnetOOSRequest->mac);
$node_mac->appendChild($node_macTextNode);
$node_tran->appendChild($node_mac);

kodları ile xml e ekletmek istiyorum fakat hata veriyor buraya mac kodu geliyor ama xml.php de

mac' öğesiyle başlayan geçersiz içerik saptandı. '{cardHolderName, tranType}' öğelerinden biri bekleniyor.şeklinde hata alıyorum