コード例 #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->validate('certPath', 'certPassword', 'orderId', 'txnTime', 'txnAmt');
     $data = array('version' => $this->getVersion(), 'encoding' => $this->getEncoding(), 'certId' => $this->getCertId(), 'signMethod' => $this->getSignMethod(), 'txnType' => '00', 'txnSubType' => '00', 'bizType' => $this->getBizType(), 'accessType' => $this->getAccessType(), 'channelType' => $this->getChannelType(), 'orderId' => $this->getOrderId(), 'merId' => $this->getMerId(), 'txnTime' => $this->getTxnTime());
     $data = Helper::filterData($data);
     $data['signature'] = Helper::getParamsSignatureWithRSA($data, $this->getCertPath(), $this->getCertPassword());
     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(), 'encoding' => $this->getEncoding(), 'certId' => $this->getCertId(), 'txnType' => '01', 'txnSubType' => '01', 'bizType' => $this->getBizType(), 'frontUrl' => $this->getReturnUrl(), 'backUrl' => $this->getNotifyUrl(), 'signMethod' => $this->getSignMethod(), 'channelType' => $this->getChannelType(), 'accessType' => $this->getAccessType(), 'merId' => $this->getMerId(), 'orderId' => $this->getOrderId(), 'txnTime' => $this->getTxnTime(), 'txnAmt' => $this->getTxnAmt(), 'currencyCode' => $this->getCurrencyCode(), 'defaultPayType' => $this->getDefaultPayType(), 'orderDesc' => $this->getOrderDesc(), 'reqReserved' => $this->getReqReserved());
     $data = Helper::filterData($data);
     $data['signature'] = Helper::getParamsSignatureWithRSA($data, $this->getCertPath(), $this->getCertPassword());
     return $data;
 }
コード例 #3
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;
 }
コード例 #4
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;
 }