Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |