Skip to content

Commit

Permalink
Fixing wsdl not being available in live endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnellockdt committed Oct 24, 2018
1 parent a93264a commit 38d2896
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/AbstractPay360Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,18 @@ public function setScpService($scpService)

protected function getScpService()
{
/**
* The location is nbeing set as the wsdl file is only supplied from the test endpoint. This is set up as the
* default in the scpService class so can be supplied as null here
*/
if ($this->getParameter('scpService') == null) {
$scpClient = new \scpService(
$this->getEndpoint(),
null,
[
'encoding' => 'UTF-8',
'exception' => true,
'trace' => true,
'location' => $this->getEndpoint(),
]
);
return $scpClient;
Expand Down

0 comments on commit 38d2896

Please sign in to comment.