SilverStripe\Omnipay\Service\PurchaseService::complete
Finalise this payment, after off-site external processing.
This is usually only called by PaymentGatewayController.
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
- void
- 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