I dont understand
Вообще
PHP:
$data_arr = array("public_key" => "public_key","version" => "3","action" => $period_val,"amount" => $summ,"currency" => "UAH","description" => $description,"order_id" => uniqid() );
$data = base64_encode(json_encode($data_arr));
$sign_string = 'secret_key'.$data.'secret_key';
$signature = base64_encode( sha1( $sign_string) );
header('Content-type: application/json');
$rtn_data_json = json_encode(array("data" => $data, "signature" => $signature,'json_string' => $data_arr));
echo $rtn_data_json;
wp_die();
Что заметил, что сама подпись слишком большая.
-
Вопрос задан
-
597 просмотров