コード例 #1
0
 /**
  * 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 mixed
  */
 public function getData()
 {
     $this->validateData();
     $data = array('version' => $this->getVersion(), 'charset' => $this->getEncoding(), 'transType' => $this->getTransType(), 'merId' => $this->getMerId(), 'backEndUrl' => $this->getNotifyUrl(), 'frontEndUrl' => $this->getReturnUrl(), 'orderDescription' => $this->getTitle(), 'orderTime' => $this->getOrderTime(), 'orderTimeout' => $this->getOrderTimeout(), 'orderNumber' => $this->getOrderNumber(), 'orderAmount' => $this->getOrderAmount(), 'orderCurrency' => $this->getOrderCurrency(), 'reqReserved' => '');
     $data = Helper::filterData($data);
     $data['signature'] = Helper::getParamsSignatureWithMD5($data, $this->getSecretKey());
     $data['signMethod'] = 'md5';
     return $data;
 }
コード例 #2
0
 /**
  * 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 mixed
  */
 public function getData()
 {
     $this->validateData();
     $data = array('version' => $this->getVersion(), 'charset' => $this->getEncoding(), 'merId' => $this->getMerId(), 'merAbbr' => $this->getMerAbbr(), 'transType' => $this->getTransType(), 'orderAmount' => $this->getOrderAmount(), 'orderNumber' => $this->getOrderNumber(), 'orderTime' => $this->getOrderTime(), 'orderCurrency' => $this->getOrderCurrency(), 'customerIp' => $this->getCustomerIp(), 'frontEndUrl' => $this->getReturnUrl(), 'backEndUrl' => $this->getNotifyUrl(), 'commodityUrl' => $this->getShowUrl(), 'commodityName' => $this->getTitle(), 'origQid' => '', 'acqCode' => '', 'merCode' => '', 'commodityUnitPrice' => '', 'commodityQuantity' => '', 'commodityDiscount' => '', 'transferFee' => '', 'customerName' => '', 'defaultPayType' => '', 'defaultBankNumber' => '', 'transTimeout' => '', 'merReserved' => '');
     $data = Helper::filterData($data);
     $data['signature'] = Helper::getParamsSignatureWithMD5($data, $this->getSecretKey());
     $data['signMethod'] = 'md5';
     return $data;
 }