Beispiel #1
0
 /**
  * Get the access credential
  * @return PagSeguroAccountCredentials
  */
 public function getPagSeguroCredentials()
 {
     $email = $this->_scopeConfig->getValue('payment/pagseguro/email');
     $token = $this->_scopeConfig->getValue('payment/pagseguro/token');
     //Set the credentials
     \PagSeguro\Configuration\Configure::setAccountCredentials($email, $token);
     return \PagSeguro\Configuration\Configure::getAccountCredentials();
 }