コード例 #1
0
ファイル: Paypal.php プロジェクト: shinichi81/laravel-gateway
 /**
  * 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
ファイル: Kbank.php プロジェクト: shinichi81/laravel-gateway
 /**
  * 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.');
 }