Closed andr2k closed 9 years ago
<?php
require 'php-wmsigner/Signer.php';
use baibaratsky\WebMoney\Signer;
$signer = new Signer('123', '/home/a/projects/webmon/123.kwm', '123');
$data = '559242867800156877883895';.
$signature = $signer->sign($data);
print $signature;
?>
$ php -v
PHP 5.5.9-1ubuntu4.9 (cli) (built: Apr 17 2015 11:44:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
С GMP удалось запустить?
Да, с GMP работает.
Хорошо. Для BCMath поменяю алгоритм.
Если нет GMP, возникает ошибка: