diff --git a/Controller/Adminhtml/Bread/ValidateCredentials.php b/Controller/Adminhtml/Bread/ValidateCredentials.php index 4742452..0b46c02 100644 --- a/Controller/Adminhtml/Bread/ValidateCredentials.php +++ b/Controller/Adminhtml/Bread/ValidateCredentials.php @@ -146,7 +146,7 @@ public function testPlatformCredentials($key, $secret, $apiMode, $tenant) { $tenantLoaded = false; $response = null; - $url = join('/', [trim($link, '/'), 'auth/sa/authenticate']); + $url = join('/', [trim($link, '/'), 'auth/service/authorize']); $curl = curl_init($url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_TIMEOUT, 30); diff --git a/Model/Payment/Api/Client.php b/Model/Payment/Api/Client.php index 7e60e20..3e450cf 100644 --- a/Model/Payment/Api/Client.php +++ b/Model/Payment/Api/Client.php @@ -873,8 +873,7 @@ protected function getUpdateTransactionUrl($transactionId) */ protected function getAuthTokenUrl() { $baseUrl = $this->helper->getTransactionApiUrl('bread_2', $this->getStoreId()); - //return join('/', [trim($baseUrl, '/'), 'auth/service/authorize']); - return join('/', [trim($baseUrl, '/'), 'auth/sa/authenticate']); + return join('/', [trim($baseUrl, '/'), 'auth/service/authorize']); } /**