Skip to content

Commit

Permalink
Merge pull request #6 from Vendic/bugfix/MHC-491-fix_postnl_order_dat…
Browse files Browse the repository at this point in the history
…a_save_with_ac_information

MHC-491: fix PostNL order data save, when ac_information exist in req…
  • Loading branch information
Tjitse-E authored Apr 19, 2024
2 parents 31d2835 + 913518d commit 69598e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Service/DeliveryOptions/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ private function saveDeliveryOption(PostnlRequestInterface $postnlRequest): bool
private function savePostNLOrderData(array $params, PostnlOrder $postnlOrder): void
{
foreach ($params as $key => $value) {
// setting ac_information via direct method, because it is serializing the value for case when it's array
if ($key == 'ac_information') {
$postnlOrder->setAcInformation($value);
continue;
}
$postnlOrder->setData($key, $value);
}

Expand Down

0 comments on commit 69598e7

Please sign in to comment.