示例#1
0
 /**
  * Get invoice return from gateway feed data.
  *
  * This invoice return from gateway, so don't need set method
  *
  * @access public
  * @return string
  */
 public function getGatewayInvoice()
 {
     if (parent::isBackendPosted()) {
         return $_POST['invoice'];
     }
     throw new GatewayException('Gateway invoice return from backend posted only.');
 }
示例#2
0
 /**
  * Get invoice return from gateway feed data
  * This invoice return from gateway, so don't need set method
  *
  * @access public
  * @return string
  */
 public function getGatewayInvoice()
 {
     if (parent::isBackendPosted()) {
         $pmgwresp = $_POST['PMGWRESP2'];
         $invoice = substr($pmgwresp, 32, 12);
         return preg_replace('#^(X|0)+#', '', $invoice);
     }
     throw new GatewayException('Gateway invoice return from backend posted only.');
 }