Skip to content

Commit

Permalink
Merge e384b6f into 02dcb08
Browse files Browse the repository at this point in the history
  • Loading branch information
ahtinurme committed Jun 13, 2020
2 parents 02dcb08 + e384b6f commit d231be1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
@@ -1,5 +1,5 @@
{
"name": "renekorss/banklink",
"name": "ahtinurme/banklink",
"description": "PHP banklink library to easily integrate Baltic banklinks.",
"keywords": ["banklink", "pangalink", "baltic banklinks", "payments", "nets", "seb", "swedbank",
"nordea", "lhv", "danskebank", "liisi", "cooppank", "luminor", "pocopay", "credit card", "payments"],
Expand All @@ -10,7 +10,7 @@
"email": "rene.korss@gmail.com"
}
],
"minimum-stability": "stable",
"minimum-stability": "dev",
"require": {
"php": ">=7.1",
"ext-mbstring": "*",
Expand Down
55 changes: 55 additions & 0 deletions src/Protocol/IPizzaTest.php
@@ -0,0 +1,55 @@
<?php
/**
* RKD Banklink.
*
* @link https://github.com/renekorss/Banklink/
*
* @author Rene Korss <rene.korss@gmail.com>
* @copyright 2016 Rene Korss
* @license MIT
*/
namespace RKD\Banklink\Protocol;

/**
* Protocol for IPizza based banklinks.
*
* @author Rene Korss <rene.korss@gmail.com>
*/
class IPizzaTest extends IPizza
{
public function __construct(
$sellerId,
$privateKey,
$privateKeyPassword,
$publicKey,
$requestUrl,
$sellerName = null,
$sellerAccount = null,
$version = '008'
) {
parent::__construct(
$sellerId,
$privateKey,
$privateKeyPassword,
$publicKey,
$requestUrl,
$sellerName,
$sellerAccount,
$version
);
}

/**
* Validate bank signature.
*
* @param array $response Array of VK_* fields
* @param string $encoding Encoding
*
* @return bool True on success, false otherwise
*/
protected function validateSignature(array $response, $encoding = 'UTF-8'): bool
{
$this->result = 1;
return $this->result === 1;
}
}

0 comments on commit d231be1

Please sign in to comment.