Skip to content

Commit

Permalink
Update Index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelmauri committed Oct 1, 2018
1 parent 453ec19 commit 305f6ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magestio/Redsys/Controller/Result/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private function processOrder()
$api = $this->getApi();
$responseCode = intval($api->getParameter('Ds_Response'));
$authorisationCode = $api->getParameter('Ds_AuthorisationCode');
$message = $payment->prependMessage(__('TPV payment accepted. (response: %1, authorization: %1)', $responseCode, $authorisationCode));
$message = $payment->prependMessage(__('TPV payment accepted. (response: %1, authorization: %2)', $responseCode, $authorisationCode));
$payment->addTransactionCommentsToOrder($transaction, $message);

$this->orderRepository->save($order);
Expand Down Expand Up @@ -189,7 +189,7 @@ private function processInvoice()
throw new LocalizedException(__('You can\'t create an invoice without products.'));
}

$invoice->setRequestedCaptureCase(Invoice::NOT_CAPTURE);
$invoice->setRequestedCaptureCase(Invoice::CAPTURE_ONLINE);

$invoice->register();

Expand Down Expand Up @@ -286,4 +286,4 @@ private function validate()

}

}
}

0 comments on commit 305f6ba

Please sign in to comment.