Skip to content

Commit

Permalink
Add v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mkielb committed Feb 9, 2024
1 parent 26ef3e7 commit f620645
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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": "1.1.1",
"version": "1.1.2",
"authors": [
{
"name": "Crehler Sp. z o. o.",
Expand Down
2 changes: 1 addition & 1 deletion src/Service/FinalizeTokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function buildUrl(OrderTransactionEntity $orderTransactionEntity): string
$orderTransactionEntity->getPaymentMethodId(),
$orderTransactionEntity->getId(),
null,
null,
288000,
null
);
$token = $this->tokenFactory->generateToken($tokenStruct);
Expand Down
3 changes: 2 additions & 1 deletion src/Service/PayU/OrderCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Crehler\PayU\Struct\Product;
use Shopware\Core\Checkout\Order\Aggregate\OrderLineItem\OrderLineItemEntity;
use Shopware\Core\Checkout\Payment\Cart\AsyncPaymentTransactionStruct;
use Shopware\Core\Framework\Uuid\Uuid;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
Expand Down Expand Up @@ -94,7 +95,7 @@ private function addOrderUrls(OrderStruct $order, AsyncPaymentTransactionStruct
*/
private function addBasicOrderData(OrderStruct $order, AsyncPaymentTransactionStruct $asyncPaymentTransactionStruct, SalesChannelContext $salesChannelContext): OrderStruct
{
$order->setExtOrderId($asyncPaymentTransactionStruct->getOrder()->getOrderNumber())
$order->setExtOrderId($asyncPaymentTransactionStruct->getOrder()->getOrderNumber() . '-'. Uuid::randomHex())
->setCustomerIp($this->request->getClientIp())
->setMerchantPosId(intval(\OpenPayU_Configuration::getOauthClientId() ? \OpenPayU_Configuration::getOauthClientId() : \OpenPayU_Configuration::getMerchantPosId()))
->setDescription($this->paymentDetailsReader->generateShortDescription($asyncPaymentTransactionStruct->getOrder()->getOrderNumber()))
Expand Down

0 comments on commit f620645

Please sign in to comment.