Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
esec_processor_SSL_interface.inc
1 <?php
25 require_once dirname(__FILE__).'/esec_processor.inc';
26 
38 {
39  var $_url = "https://sec.aba.net.au/cgi-bin/service/authorise";
40 
42  {
43  parent::Esec_Processor();
44 
45  $this->set('EPS_REDIRECT', 'true');
46  }//end constructor
47 
55  {
56  $query_string = Array();
57  foreach ($this->parameters as $name => $value) {
58  if ($name == 'EPS_MERCHANT') {
59  $merchant_id = $value;
60  }
61  if (is_array($value)) {
62  foreach ($value as $v) {
63  $query_string[] = $name.'='.urlencode($v);
64  }
65  } else {
66  $query_string[] = $name.'='.urlencode($value);
67  }
68  }
69  $query_string = implode('&', $query_string);
70 
71  return $this->_url.'/'.$merchant_id.'?'.$query_string;
72 
73  }//end generateRedirectURL()
74 
81  function process()
82  {
83  $success = false;
84  foreach ($this->eps_v3plus_responses as $name) {
85  $this->response[$name] = $_REQUEST[$name];
86  }
87 
88  // return success status
89  if (substr($this->response['message'], 0, 3) == '200') {
90  $success = true;
91  }
92  return $success;
93 
94  }//end process()
95 
96 }//end class
97 ?>