Commit fedf8baa authored by Kulya's avatar Kulya 😊

Add billz clientId to order 7

parent ed4d31dc
...@@ -755,7 +755,7 @@ class AloVoiceRest ...@@ -755,7 +755,7 @@ class AloVoiceRest
]; ];
if($order_client_id = self::process_order_client($order["id"])){ if($order_client_id = self::process_order_client($order["id"])){
$arOrderParams["client_id"] = $order_client_id; $arOrderParams["client_id"] = (int)$order_client_id;
} }
ALVC::eLog($arOrderParams,"------ Billz Order PARAMS:"); ALVC::eLog($arOrderParams,"------ Billz Order PARAMS:");
......
...@@ -125,6 +125,14 @@ require_once (__DIR__.'/keys.php'); ...@@ -125,6 +125,14 @@ require_once (__DIR__.'/keys.php');
return $result; return $result;
} }
public static function getClient($phone) {
$result = static::callCurl("client.search",[
"phoneNumber" => $phone
]);
return $result;
}
public static function base64_url_encode($input) { public static function base64_url_encode($input) {
return trim(strtr(base64_encode($input), '+/', '-_'), '='); return trim(strtr(base64_encode($input), '+/', '-_'), '=');
} }
......
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