Beispiel #1
0
 public function beforesummary()
 {
     $this->loadLibConfig();
     $result = OpenPayU_OAuth::accessTokenByCode($this->request->get['code'], $this->url->link('payment/payu/beforesummary', '', 'SSL'));
     echo "Redirecting..";
     echo '<form method="GET" action="' . OpenPayu_Configuration::getSummaryUrl() . '" id="payu_checkout" lang="' . $this->session->data['language'] . '">';
     echo '<input type="hidden" name="lang" value="' . $this->session->data['language'] . '">';
     echo '<input type="hidden" name="sessionId" value="' . $_SESSION['sessionId'] . '">';
     echo '<input type="hidden" name="oauth_token" value="' . $result->getAccessToken() . '">';
     echo '</form>';
     echo '<script type="text/javascript">document.getElementById("payu_checkout").submit();</script>';
 }
 public function getAccessTokenByCode($code, $returnUri)
 {
     return \OpenPayU_OAuth::accessTokenByCode($code, $returnUri);
 }