Skip to content

Commit

Permalink
[SHPWR-66] Date of payment is now set automatically (cleareddate)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpWelschlau committed Aug 31, 2016
1 parent 7f58676 commit 62ddd6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Controller/frontend/RpayRatepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ private function _proceedPayment()
Shopware()->Pluginlogger()->error($exception->getMessage());
}

//set cleared date
$dateTime = new DateTime();
$order = Shopware()->Models()->find('Shopware\Models\Order\Order', $orderId);
$order->setClearedDate($dateTime);
Shopware()->Models()->flush($order);

//set payments status to payed
$this->savePaymentStatus(
Shopware()->Session()->RatePAY['transactionId'],
Expand Down

0 comments on commit 62ddd6b

Please sign in to comment.