Skip to content

Commit 8fadc93

Browse files
author
rorymac69
committed
fix irregular response name for processRefund method
1 parent c3f0eee commit 8fadc93

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/FixSoftware/WebpayWS/Response.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class Response {
3030
private $soapWrapperName;
3131

3232
/** @var array */
33-
private $soapWrapperNameIrregulars = [];
33+
private $soapWrapperNameIrregulars = [
34+
'processRefund' => 'refundRequest',
35+
];
3436

3537
/** @var array */
3638
private $soapData;
@@ -46,7 +48,7 @@ class Response {
4648

4749
public function __construct($method, $messageId, $soapData, $soapWrapperNameIrregulars = []) {
4850

49-
$this->soapWrapperNameIrregulars = $soapWrapperNameIrregulars;
51+
$this->soapWrapperNameIrregulars = array_merge($soapWrapperNameIrregulars, $this->soapWrapperNameIrregulars);
5052

5153
$this->method = $method;
5254
$this->messageId = $messageId;
@@ -129,4 +131,4 @@ private function ucpos($subject) {
129131
return $n ? $matches[0][1] : false;
130132
}
131133

132-
}
134+
}

0 commit comments

Comments
 (0)