Skip to content

Commit

Permalink
Set payment order to null when setting the cart (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson authored Jul 30, 2024
1 parent cde2ae7 commit 97a90ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/PaymentTypes/AbstractPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ abstract class AbstractPayment implements PaymentTypeInterface
public function cart(Cart $cart): self
{
$this->cart = $cart;
$this->order = null;

return $this;
}
Expand All @@ -46,6 +47,7 @@ public function cart(Cart $cart): self
public function order(Order $order): self
{
$this->order = $order;
$this->cart = null;

return $this;
}
Expand Down

0 comments on commit 97a90ad

Please sign in to comment.