Service.php
680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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)
{
}
}