コード例 #1
0
ファイル: TransactionTest.php プロジェクト: rmhdev/redsys
 protected function createAuthentication()
 {
     return AuthenticationFactory::create("HMAC_SHA256_V1", $this->secretKey());
 }
コード例 #2
0
ファイル: NotificationTest.php プロジェクト: rmhdev/redsys
 private function createAuthentication()
 {
     return AuthenticationFactory::create(HmacSha256V1::NAME, $this->secretKey());
 }
コード例 #3
0
ファイル: Notification.php プロジェクト: rmhdev/redsys
 /**
  * @inheritdoc
  */
 public function getAuthentication()
 {
     return AuthenticationFactory::create(self::DEFAULT_AUTHENTICATION, $this->getKey());
 }
コード例 #4
0
ファイル: Notification.php プロジェクト: rmhdev/redsys
 /**
  * @inheritdoc
  */
 public function getAuthentication()
 {
     $version = $this->getValue(self::VERSION);
     return AuthenticationFactory::create($version, $this->getKey());
 }
コード例 #5
0
 /**
  * @expectedException \UnexpectedValueException
  */
 public function testCreateAuthenticationFactoryShouldThrowException()
 {
     AuthenticationFactory::create("Authentication_Factory", "my_key");
 }