Advertisement
Guest User

Alfa

a guest
Dec 15th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. $sStatusURL = $arPayParams["PAYMENT_WAY"]."/rest/getOrderStatus.do?".
  2.         "userName=".urlencode($arQueryParams["userName"])."&".
  3.         "password=".urlencode($arQueryParams["password"])."&".
  4.         "orderId=".urlencode($arQueryParams["orderId"]);
  5.  
  6.     // send query
  7.     $rCURL = curl_init();
  8.     curl_setopt($rCURL, CURLOPT_URL, $sStatusURL);
  9.     curl_setopt($rCURL, CURLOPT_RETURNTRANSFER, 1);
  10.     $r = curl_exec($rCURL);
  11.     curl_close($rCURL);
  12.     $arAnswer = json_decode($r, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement