Skip to content

Commit

Permalink
Fix Shipping Total in Payment Session Create Service
Browse files Browse the repository at this point in the history
  • Loading branch information
aashwin-rvvup committed Dec 18, 2024
1 parent deda5fb commit 0e01aeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Service/PaymentSessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ private function buildPaymentSession(string $checkoutId, Quote $quote): PaymentS
}
if ($paymentSessionInput->getRequiresShipping() === true) {
$paymentSessionInput->setShippingAddress($this->buildAddress($quote->getShippingAddress()));
$paymentSessionInput->setShippingTotal(
$this->buildAmount(
$quote->getShippingAddress()->getShippingAmount(),
$currency
)
);
}
return $paymentSessionInput;
}
Expand Down

0 comments on commit 0e01aeb

Please sign in to comment.