Skip to content

Commit

Permalink
Add v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkielb committed Feb 9, 2024
1 parent c26364c commit fb952b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PayU integration for Shopware 6",
"type": "shopware-platform-plugin",
"license": "proprietary",
"version": "2.0.2",
"version": "2.0.3",
"authors": [
{
"name": "Crehler Sp. z o. o.",
Expand Down
2 changes: 1 addition & 1 deletion src/Service/PayU/OrderCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function addBasicOrderData(OrderStruct $order, AsyncPaymentTransactionSt
->setDescription($this->paymentDetailsReader->generateShortDescription($asyncPaymentTransactionStruct->getOrder()->getOrderNumber()))
->setAdditionalDescription($this->paymentDetailsReader->generateLongDescription($asyncPaymentTransactionStruct->getOrder()->getOrderNumber()))
->setCurrencyCode($salesChannelContext->getCurrency()->getIsoCode())
->setTotalAmount($asyncPaymentTransactionStruct->getOrderTransaction()->getAmount()->getTotalPrice() * 100);
->setTotalAmount((int)round($asyncPaymentTransactionStruct->getOrderTransaction()->getAmount()->getTotalPrice() * 100));

return $order;
}
Expand Down

0 comments on commit fb952b7

Please sign in to comment.