SilverStripe\Omnipay\Service\ServiceResponse::setTargetUrl
Set the target url.
In the case of a redirect, the URL is given by the Omnipay response and should be considered immutable. When trying to set a targetUrl in this scenario, an Exception will be raised.
Signature
public function setTargetUrl(string
$value )
Parameters
$value
— string- the new target url
Returns
- $this
Errors/Exceptions
-
ServiceException
- if trying to set a targetUrl for a redirect.