Skip to content

Commit

Permalink
Merge pull request #1548 from dpfaffenbauer/issues/payment-provider
Browse files Browse the repository at this point in the history
[Order] fix payment provider
  • Loading branch information
dpfaffenbauer authored Dec 22, 2020
2 parents d92a978 + c69fdf6 commit 47ee58c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function provideOrderPayment(OrderInterface $order)
$payment->setCurrency($order->getCurrency());

if ($order instanceof PaymentSettingsAwareInterface) {
$payment->setDetails(new ArrayObject($order->getPaymentSettings()));
$payment->setDetails(new ArrayObject($order->getPaymentSettings() ?? []));
}

if ($payment instanceof OrderPaymentInterface) {
Expand Down

0 comments on commit 47ee58c

Please sign in to comment.