/** * @inheritdoc */ public function finalizeTransaction(OrderInterface $order, Transaction $transaction) { $transaction->setComment('Example comment'); $transaction->setReference('123'); }
/** * @inheritdoc */ public function loadTransactionFromResponse(Response $response, Transaction $transaction) { $transaction->setTransactionID($response->getParam('VK_STAMP', false)); $transaction->setReference($response->getParam('VK_REF', false)); $transaction->setSum($response->getParam('VK_AMOUNT', false)); $transaction->setComment($response->getParam('VK_MSG', false)); $transaction->setCurrency($response->getParam('VK_CURR', false)); $transaction->setLanguage($response->getParam('VK_LANG', false)); }