Exemplo n.º 1
0
 /**
  * @brief 查询订单 
  *
  * @param int transaction_id 订单交易id
  * @return bool 是否支付成功 
  * @retval   
  * @see 
  * @note 
  * @author 吕宝贵
  * @date 2016/03/06 11:53:48
  **/
 public function queryPayStatus($orderParams)
 {
     $this->setScenario('query');
     $orderParams = array_merge($this->_config, $orderParams);
     $orderParams['nonce_str'] = $this->getNonceStr();
     $this->load($orderParams, '');
     $this->setSign();
     return WechatPayClient::queryOrderPayStatus($this);
 }
Exemplo n.º 2
0
 /**
  * @brief 向服务器发送订单处理失败信号
  *
  * @retval   
  * @see 
  * @note 
  * @author 吕宝贵
  * @date 2016/03/11 10:24:12
  **/
 public function replyFailureToServer()
 {
     $reply = ['return_code' => 'FAIL', 'return_msg' => 'NOT_OK'];
     $replyXml = $this->toXml($reply);
     WechatPayClient::replyNotify($replyXml);
 }