SilverStripe\Omnipay\Service\PaymentService::markCompleted
Mark this payment process as completed.
This sets the desired end-status on the payment, sets the transaction reference and writes the payment. In subclasses, you'll want to override this and: * Log/Write the GatewayMessage * Call a "complete" hook Don't forget to call the parent method from your subclass!
Signature
protected function markCompleted(string
$endStatus,
ServiceResponse
$serviceResponse,
mixed
$gatewayMessage )
Parameters
$endStatus
— string- the end state to set on the payment
$serviceResponse
— SilverStripe\Omnipay\Service\ServiceResponse- the service response
$gatewayMessage
— mixed- the message from Omnipay