47 $this->mathRandom = $mathRandom;
48 $this->transparent = $transparent;
61 $this->transparent->setStore(
$quote->getStoreId());
62 $request = $this->transparent->buildBasicRequest();
68 $request->setSecuretokenid($this->mathRandom->getUniqueHash());
69 $request->setReturnurl($this->url->getUrl(
'paypal/transparent/response'));
70 $request->setErrorurl($this->url->getUrl(
'paypal/transparent/response'));
71 $request->setCancelurl($this->url->getUrl(
'paypal/transparent/cancel'));
77 $result = $this->transparent->postRequest(
$request, $this->transparent->getConfig());
requestToken(Quote $quote)
__construct(UrlInterface $url, Random $mathRandom, Transparent $transparent)