Skip to content

Commit

Permalink
[rzp order id] Storing rzp order id in status history
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankamencherla committed Dec 18, 2017
1 parent 17efd38 commit 2f05609
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Model/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ public function authorize(InfoInterface $payment, $amount)
{
/** @var \Magento\Sales\Model\Order\Payment $payment */
$order = $payment->getOrder();
$orderId = $order->getIncrementId();

$request = $this->getPostData();

Expand All @@ -211,7 +210,10 @@ public function authorize(InfoInterface $payment, $amount)
->setLastTransId($payment_id)
->setTransactionId($payment_id)
->setIsTransactionClosed(true)
->setShouldCloseParentTransaction(true);
->setShouldCloseParentTransaction(true)
->place();

$order->save();
}
catch (\Exception $e)
{
Expand Down

0 comments on commit 2f05609

Please sign in to comment.