コード例 #1
0
ファイル: CaptureRequest.php プロジェクト: lsv/omnipay-epay
 /**
  * Get the raw data array for this message. The format of this varies from gateway to
  * gateway, but will usually be either an associative array, or a SimpleXMLElement.
  *
  * @return array
  */
 public function getData()
 {
     $this->validate('merchantnumber', 'amount', 'transactionid');
     $data = array();
     foreach (Settings::getCaptureKeys() as $key) {
         $value = $this->parameters->get($key);
         if (!empty($value)) {
             $data[$key] = $value;
         }
     }
     /** Hack from SOAP description */
     $data['pbsResponse'] = -1;
     $data['epayresponse'] = -1;
     return $data;
 }