MaxMind的minFraud

MaxMind的minFraud 提供了WebService可以检查e-Commerce中支付信息的真实性并返回一个风险分数和文字描述。 http://www.maxmind.com/app/ccv

PHP客户端代码例如下:
<?php
	$soapClient = new SoapClient('http://www.maxmind.com/app/minfraud_soap_wsdl8');
	$param=array(
		'i'           => '202.108.33.71',
		'country'     => 'CN',
		'license_key' => 'your_key',
	);
	$out = $soapClient->minfraud_soap8($param);
	$data = $out->minfraud_output;
	echo '<pre>';
	var_dump($data);
	echo '</pre>';

返回结果可能如下:
object(stdClass)[3]
  public 'anonymousProxy' => string 'No' (length=2)
  public 'binCountry' => string '' (length=0)
  public 'binMatch' => string 'NA' (length=2)
  public 'binNameMatch' => string 'NA' (length=2)
  public 'binPhoneMatch' => string 'NA' (length=2)
  public 'carderEmail' => string '' (length=0)
  public 'countryCode' => string 'CN' (length=2)
  public 'countryMatch' => string 'Yes' (length=3)
  public 'custPhoneInBillingLoc' => string '' (length=0)
  public 'distance' => string '1144' (length=4)
  public 'err' => string 'CITY_NOT_FOUND' (length=14)
  public 'explanation' => string 'This order is low risk. This order is higher risk because the distance between the billing address and the user's actual location is so great' (length=141)
  public 'freeMail' => string 'No' (length=2)
  public 'highRiskCountry' => string 'No' (length=2)
  public 'highRiskPassword' => null
  public 'highRiskUsername' => null
  public 'ip_city' => string 'Beijing' (length=7)
  public 'ip_isp' => string 'China Unicom Beijing Province Network' (length=37)
  public 'ip_latitude' => string '39.9289' (length=7)
  public 'ip_longitude' => string '116.3883' (length=8)
  public 'ip_org' => string 'China Unicom Beijing Province Network' (length=37)
  public 'ip_region' => string '22' (length=2)
  public 'maxmindID' => string 'YDVXQFRR' (length=8)
  public 'proxyScore' => string '0.00' (length=4)
  public 'queriesRemaining' => string '5486' (length=4)
  public 'riskScore' => string '1.07' (length=4)
  public 'score' => string '0.57' (length=4)
  public 'shipForward' => string '' (length=0)

你可能感兴趣的:(PHP,webservice,SOAP)