SilverStripe\Omnipay\Service\PaymentService::complete
Complete a previously initiated gateway request.
This is separate from initiate, since some requests require more than one step. Eg. offsite payments or payments to gateways that return asynchronous responses.
Signature
public function complete([array
$data = ,
[boolean
$isNotification = false]] )
Parameters
$data
— array- payment data
$isNotification
— boolean- whether or not this was called from a notification callback (async). Defaults to false
Returns
- ServiceResponse
- the service response
Errors/Exceptions
-
InvalidStateException
- when the payment is in a state that prevents running `complete`
-
InvalidConfigurationException
- when there's a misconfiguration in the module itself