Skip to content

Commit

Permalink
fixed XML parsing bug for MPI Enrollment Response
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasserter committed Jan 26, 2018
1 parent 5e52469 commit 535ceea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/MpiEnrollment/MpiEnrollmentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ protected function parseXml()
$this->data['Status'] = $statusNode->nodeValue;
}

$paReqNode = $dom->getElementsByTagName("PaReq")->item(0);
$paReqNode = $dom->getElementsByTagName("PAReq")->item(0);
if ($paReqNode != null) {
$this->data['PaReq'] = $paReqNode->nodeValue;
$this->data['PAReq'] = $paReqNode->nodeValue;
}

$acsUrlNode = $dom->getElementsByTagName("ACSUrl")->item(0);
Expand Down Expand Up @@ -71,7 +71,7 @@ public function toArray()
{
return [
'Status' => $this->get('Status'),
'PaReq' => $this->get('PaReq'),
'PAReq' => $this->get('PAReq'),
'ACSUrl' => $this->get('ACSUrl'),
'TermUrl' => $this->get('TermUrl'),
'MerchantData' => $this->get('MerchantData'),
Expand Down

0 comments on commit 535ceea

Please sign in to comment.