예제 #1
0
 /**
  * @inheritdoc
  */
 public function finalizeTransaction(OrderInterface $order, Transaction $transaction)
 {
     $transaction->setComment('Example comment');
     $transaction->setReference('123');
 }
예제 #2
0
 /**
  * @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));
 }
예제 #3
0
 /**
  * Create a new transaction object
  *
  * @param mixed $transactionId
  * @param float $sum
  * @param array $params
  * @return Transaction
  */
 public function createTransaction($transactionId, $sum, $params = [])
 {
     return Transaction::create($transactionId, $sum, $params);
 }
예제 #4
0
 /**
  * @inheritdoc
  */
 public function loadTransactionFromResponse(Response $response, Transaction $transaction)
 {
     $transaction->setComment(false);
     $ecuno = $response->getParam('ecuno', false);
     if ($ecuno > 100000000) {
         $ecuno = $ecuno % 100000000;
         // subtract 100 000 000
     }
     $transaction->setTransactionID($ecuno);
     $transaction->setSum($response->getParam('eamount', false));
     $transaction->setCurrency($response->getParam('cur', false));
     $transaction->setLanguage($response->getParam('lang', false));
 }