cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 braintree requests with sessionId

magento 2 braintree requests with sessionId

Hi guys

 

I am trying to update Magento checkout which using Braintree payment gateway. On checkout I see requests to https://payments.sandbox.braintree-api.com/graphql which have sessionId like "0b7ae150-7231-4021-9b58-4323c10b78b1"

{
  "clientSdkMetadata": {
    "source": "client",
    "integration": "custom",
    "sessionId": "0b7ae150-7231-4021-9b58-4323c10b78b1"
  },
  "query": *
  "operationName": "ClientConfiguration"
}

 

I have checked it is not sessionID from 

Magento\Framework\Session\SessionManager

Is someone can help me understand where magento get that param? I mean sessionId  and why it changed from time to time?

 

Duke

1 REPLY 1

Re: magento 2 braintree requests with sessionId

public function __construct
(
\Magento\Framework\Session\SessionManager $sessionManager
)

{
$this->_session = $sessionManager;
}

public function execute(\Magento\Framework\Event\Observer $observer)
{
$sessionID = $this->_session->getSessionId();
}
If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool