Привет, сразу перейду к делу и объясню ситуацию. После оплаты покупателя перебрасывает на страницу моего сайта, с параметром uniquecode=XXXXXXXXXXXXXXXX, наша задача с помощью API digiseller проверить данный код что-бы по итогу была возможность получить данные об платеже (Например сумму) и записать её в переменную. Возможно кто-то уже выполнял такую работу и щедро поделиться кодом или просто понимает как это сделать. За помощь естественно отблагодарю материально. имеются наброски кода вырезанные с шаблонов, возможно они как-то помогут код $id_seller = 33333; $pass_DS = "333333"; function r_b_ch($tmp, $text) { $text = preg_replace("/".$tmp."/", "", $text); return $text; } function request($act, $req) { $ch = curl_init($act); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $req); $result = curl_exec($ch); if(curl_errno($ch)) echo "Curl Error number = ".curl_errno($ch).", Error desc = ".curl_error($ch)."<br />"; curl_close($ch); return $result; } function request_chech_code($id_seller, $unique_code, $sign) { $request = "<?xml version=\"1.0\" encoding=\"windows-1251\"?> <digiseller.request> <id_seller>".$id_seller."</id_seller> <unique_code>".$unique_code."</unique_code> <sign>".$sign."</sign> </digiseller.request>"; return $request; } function answer_check_code($id_seller, $unique_code, $sign) { $tmp_id_seller = "[^0-9]"; $id_seller = r_b_ch($tmp_id_seller, $id_seller); $tmp_unique_code = "[^A-Z0-9]"; $unique_code = substr(r_b_ch($tmp_unique_code, $unique_code), 0, 16); $tmp_sign = "[^A-Za-z0-9]"; $id_sign = r_b_ch($tmp_sign, $sign); $request = request_chech_code($id_seller, $unique_code, $sign); $answer = request('https://shop.digiseller.ru/xml/check_unique_code.asp', $request); return $answer; } } } ?> https://my.digiseller.com/inside/api_general.asp#searchuniquecode