Service.php 680 Bytes
<?php

namespace WebPlugin\Pay\Ips;

use WebPlugin\Pay\PayAbstract;
use WebPlugin\Pay\Reqparams;

class Service extends PayAbstract
{
	var $config;
	
	function __construct(array $paymentParams)
	{
		$this->config = new Config();
		
		$myConfig = json_decode($paymentParams["pay_params"]) ;
		$this->config->merchantAcctId = $myConfig->merchant_id;
		$this->config->sp_key = $myConfig->merchant_key;
	}
	
	public function getPayRequestPars(Reqparams $params)
	{
		
	}
	
	public function parseResponse(array $arrResponse)
	{
		
	}
	
	/**
	 * 验证回复的正确性
	 */
	protected function checkResponse(array $arrResponse)
	{
		
	}
	
	
	
}