SilverStripe\Omnipay\Service\ServiceResponse::redirectOrRespond
Create a redirect or a response.
This should be called when the application is ready to redirect! If the response is a redirect, the redirect takes precedence. Next, the HTTP response will be returned (if set) and lastly a redirect response to the @see getTargetUrl. If none of these parameters are given, this method will return null
Signature
public function redirectOrRespond()
Returns
- HTTPResponse