Commit b3b72c90 authored by Kulya's avatar Kulya 😊

Update Billz Curl check4

parent 24562060
......@@ -131,7 +131,9 @@ require_once (__DIR__.'/keys.php');
$signature = hash_hmac("sha256", $unsignedToken, $conf["secret"], true);
$encodedSignature = self::base64_url_encode($signature);
$token = $unsignedToken . '.' . $encodedSignature;
return ["token"=>$token, "url"=>$conf["url"]];
$conf["token"] = $token; //, "url"=>$conf["url"]];
return $conf;
}
......@@ -160,6 +162,8 @@ require_once (__DIR__.'/keys.php');
$arSettings = static::connectionSettings();
static::setLog( $out, '--==== billzCurl OUT:' );
$result = [ "settings" => $arSettings ];
if(!empty($arSettings))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment