Skip to content

Commit 1839445

Browse files
committed
Fixed response parser
1 parent 3884167 commit 1839445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Omnipay/Ukash/Message/AbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function sendRequest($method, $action, $data = null)
142142

143143
$xml = new SimpleXMLElement(htmlspecialchars_decode($httpResponse->getBody(true)), LIBXML_NONET);
144144

145-
if (isset($xml->UKashRPP)) {
145+
if (!isset($xml->UKashRPP)) {
146146
throw new InvalidResponseException('Missing "UKashRPP" element in XML response');
147147
}
148148

0 commit comments

Comments
 (0)