Example #1
0
 /**
  * Constructor for Ideal
  *
  * @param string $configKey
  * @param string $password
  * @param string $hashFunction (default sha1)
  */
 public function __construct($configKey, $password, $hashFunction = 'sha1')
 {
     parent::__construct($configKey);
     list($userId, $projectId) = explode(':', $configKey);
     $this->_password = $password;
     $this->_userId = $this->_parameters['user_id'] = $userId;
     $this->_projectId = $this->_parameters['project_id'] = $projectId;
     $this->_hashFunction = strtolower($hashFunction);
     $this->_paymentUrl = $this->_getPaymentDomain();
 }
 /**
  * Constructor for Sofortueberweisung
  *
  * @param string $configKey
  * @return Sofortueberweisung
  */
 public function __construct($configKey)
 {
     parent::__construct($configKey);
     $this->_parameters['su'] = array();
     return $this;
 }