Commit bb5f66d5 authored by Kulya's avatar Kulya 😊

Update Billz Curl check6

parent e7ad38e4
...@@ -163,9 +163,9 @@ require_once (__DIR__.'/keys.php'); ...@@ -163,9 +163,9 @@ require_once (__DIR__.'/keys.php');
$arSettings = static::connectionSettings(); $arSettings = static::connectionSettings();
static::setLog( $out, '--==== billzCurl OUT:' );
$result = [ "settings" => $arSettings ]; // $result = [ "settings" => $arSettings ];
$result = [];
if(!empty($arSettings)) if(!empty($arSettings))
{ {
if($method=="orders.create") { $arSettings["apiversion"]="v2"; } if($method=="orders.create") { $arSettings["apiversion"]="v2"; }
...@@ -206,6 +206,8 @@ require_once (__DIR__.'/keys.php'); ...@@ -206,6 +206,8 @@ require_once (__DIR__.'/keys.php');
$out = curl_exec($obCurl); $out = curl_exec($obCurl);
$info = curl_getinfo($obCurl); $info = curl_getinfo($obCurl);
static::setLog( $url, '--==== billzCurl URL:' );
static::setLog( $headers, '--==== billzCurl HEADRES:' );
static::setLog( $out, '--==== billzCurl OUT:' ); static::setLog( $out, '--==== billzCurl OUT:' );
if(curl_errno($obCurl)) { if(curl_errno($obCurl)) {
......
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