Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 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);
 }