本文整理汇总了PHP中Gateway::prepareRequest方法的典型用法代码示例。如果您正苦于以下问题:PHP Gateway::prepareRequest方法的具体用法?PHP Gateway::prepareRequest怎么用?PHP Gateway::prepareRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gateway
的用法示例。
在下文中一共展示了Gateway::prepareRequest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prepareRequest
protected function prepareRequest($endpointType = 'xml')
{
$this->request['mid'] = $this->config('mid');
$this->request['tid'] = $this->config('tid');
//$this->request['tranDateRequired'] = '1';
$endpoint = $this->config('endpoint');
$this->endpoint = $endpoint[$endpointType];
parent::prepareRequest();
$this->requestBody = 'xmldata=' . urldecode($this->requestBody);
}
示例2: prepareRequest
protected function prepareRequest($endpointType = 'xml')
{
$endpoint = $this->config('endpoint');
$this->endpoint = $endpoint[$endpointType];
$this->request['Name'] = $this->config('username');
$this->request['Password'] = $this->config('password');
$this->request['ClientId'] = $this->config('merchant');
parent::prepareRequest();
$this->requestBody = 'data=' . urldecode($this->requestBody);
}
示例3: prepareRequest
protected function prepareRequest($endpointType = 'xml')
{
$endpoint = $this->config('endpoint');
$this->endpoint = $endpoint[$endpointType];
$this->request['Mode'] = $this->test ? 'TEST' : 'PROD';
parent::prepareRequest();
$request = $this->requestBody;
//$request = preg_replace('/\n[ ]+/', "\n", $request);
//die($request);
//$this->requestBody = 'xmldata=' . urldecode($this->requestBody);
}