Skip to content

Commit

Permalink
Delete temporary cart for product
Browse files Browse the repository at this point in the history
ISSUE: AD4CR22I-21
  • Loading branch information
filipkojic committed Jan 17, 2025
1 parent a709935 commit c9a3006
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Service/ExpressCheckoutService.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ public function getExpressCheckoutConfig(
// Available payment methods
$paymentMethods = $cartData['paymentMethods'];

// Delete temporary cart for product
if($productId !== '-1') {
$this->cartService->deleteCart($cartData['updatedSalesChannelContext']);
}

return [
'currency' => $currency,
'amount' => $amountInMinorUnits,
Expand Down

0 comments on commit c9a3006

Please sign in to comment.