Skip to content

Commit

Permalink
#164 extra request only order number
Browse files Browse the repository at this point in the history
  • Loading branch information
kmWebStollen committed Sep 19, 2022
1 parent 1bb8ffb commit 6de77d4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions version/208/class/Checkout/OrderCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,23 @@ public function getIncomingPayment()
*/
protected function updateOrderNumber()
{
//update only order number
try {
if ($order = $this->getMollie()) {
$body = [
'orderNumber' => $this->getBestellung()->cBestellNr
];
$this->API()->Client()->orders->update($order->id, $body);
}
if ($this->getModel()->cTransactionId) {
$this->API()->Client()->payments->update($this->getModel()->cTransactionId, [
'description' => $this->getDescription()
]);
}
} catch (Exception $e) {
$this->Log('Update only orderNumber nOrderCheckout::updateOrderNumber:' . $e->getMessage(), LOGLEVEL_ERROR);
}

try {
if ($this->getMollie()) {
$this->getMollie()->orderNumber = $this->getBestellung()->cBestellNr;
Expand Down

0 comments on commit 6de77d4

Please sign in to comment.