Skip to content

Commit

Permalink
Fix storeId passthru for UrlOverride plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wysocki committed Aug 22, 2024
1 parent a12a387 commit 50adaee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Plugin/UrlOverride.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public function __construct(ConfigurationProvider $tpayConfig)
$this->tpayConfig = $tpayConfig;
}

public function afterGetTpayFormData(TpayPayment $subject, $result, $name, $storeId = 0)
public function afterGetTpayFormData(TpayPayment $subject, $result)
{
$successUrl = $this->tpayConfig->getConfigData('graphql_url_override/success_url', $storeId);
$errorUrl = $this->tpayConfig->getConfigData('graphql_url_override/error_url', $storeId);
$notificationUrl = $this->tpayConfig->getConfigData('graphql_url_override/notification_url', $storeId);
$successUrl = $this->tpayConfig->getConfigData('graphql_url_override/success_url', $subject->getStore());
$errorUrl = $this->tpayConfig->getConfigData('graphql_url_override/error_url', $subject->getStore());
$notificationUrl = $this->tpayConfig->getConfigData('graphql_url_override/notification_url', $subject->getStore());

if (!empty($successUrl)) {
$result['return_url'] = $successUrl;
Expand Down

0 comments on commit 50adaee

Please sign in to comment.