SilverStripe\Omnipay\Service\PaymentService::createMessage
Record a transaction on this for this payment.
Signature
protected function createMessage(string
$type,
[array|string|AbstractResponse|AbstractRequest|OmnipayException|NotificationInterface
$data = NULL] )
Parameters
$type
— string- the type of transaction to create.
This is any class that is (or extends) PaymentMessage. $data
— object
Returns
- PaymentMessage
- newly created DataObject, saved to database.