Skip to content

New SDK notifications#104

Open
aleksanderkakol wants to merge 6 commits intomasterfrom
handle-notification-sdk
Open

New SDK notifications#104
aleksanderkakol wants to merge 6 commits intomasterfrom
handle-notification-sdk

Conversation

@aleksanderkakol
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

$this->tpayService = $tpayService;
$this->tokensService = $tokensService;
$this->tpay = $tpayModel;
$this->tpay = $tpay;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name have changed, but no other changes in this file - so this is unused dependency?

Copy link
Contributor Author

@aleksanderkakol aleksanderkakol Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its used in line 55, only name of parameter changed, property still has same name

if ($orderId) {
$storeId = $this->getOrderStore($orderId);
}
$defaultStoreId = $this->storeManager->getDefaultStoreView()->getId();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is called within controller it should have correct store resolved already by system.
It should be safe to assume that $this->storeManager->getCurrentStoreId() is correct store id for notification (based on URL generated during transaction creation it should have proper domain / store code in address)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


$strategy = $this->factory->create($notification);

$strategy->process($storeId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like all implementations of strategy have process($notification, ? $storeId) declaration now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants