PHP CODE

	
	/**
	 * Prepare to request parameters.	
	 */
	$apiPassword='****'; //warapay Get	
	
	$params=array();
	$params['appid']='****';//warapay Get	
	$params['callback']='json';//Return type
	$params['point_type']='1';//Point type
	$params['interval_time']='10';//10 minutes
	$params['point']='10';//Get Point
	$params['failure_time']='0';//failure time
	$params['time']=time();
	
	/**signature**/
	ksort($params);
	$params['signature']=md5(http_build_query($params).$apiPassword); 
 

	/**
	 * Start the request
	 */	 
	
	$url="http://wara-kr.quickget.co/pay/request_point.html";
	$result=_http($url,$params);//POST
	
	
	function _http($url,$param=array(),$header=array()){		
		$oCurl = curl_init();
		if(stripos($url,"https://")!==FALSE){
			curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, FALSE);
			curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, true);
			curl_setopt($oCurl, CURLOPT_SSLVERSION, 1); 
		} 

		$aPOST = array();
		foreach($param as $key=>$val){
			$aPOST[] = $key."=".urlencode($val);
		}
		
		$strPOST =  join("&", $aPOST);	
		
		$headers=array();
		$header['Content-Type']='application/x-www-form-urlencoded; charset=UTF-8';
		foreach($header as $k=>$v){
			$headers[]=$k.': '.$v;
		} 

		curl_setopt($oCurl, CURLOPT_URL, $url);
		curl_setopt($oCurl, CURLOPT_HEADER, 0);
		curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1 );
		curl_setopt($oCurl, CURLOPT_HTTPHEADER,$headers);
		curl_setopt($oCurl, CURLOPT_TIMEOUT,30);		
	
		curl_setopt($oCurl, CURLOPT_POST,1);
		curl_setopt($oCurl, CURLOPT_POSTFIELDS,$strPOST);			
		
		
		$sContent = curl_exec($oCurl);
		$aStatus = curl_getinfo($oCurl);
		curl_close($oCurl);
		if(intval($aStatus["http_code"])==200){
			return $sContent;
		}else{
			return false;
		}
	}
	
	

JSON CODE:(The returned JSON data.)

	
	{
		"code": 0,
		"quickid": 346,
		"message": "https:\/\/epay.miguyouxi.com\/jump-init.do?cmd=quick&country=kr&id=MzQ2",
		"qrcode": "http:\/\/wara-kr.quickget.co\/uploadfile\/qrcode\/3139ed4b18377b36bcf1857bb8255489_logo.png",
		"token": "1645r0c"
	}
	

Let's try it.

.....

Please use waraPay to scan the QR code to experience this function.

Copyright © 2011-2018 waraPay. All Rights Reserved. Current version is 1.0.2