コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getChargeValueModifier()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getChargeValueModifier', array());
     return parent::getChargeValueModifier();
 }
コード例 #2
0
ファイル: Transaction.php プロジェクト: kewaunited/xcart
 /**
  * Get charge value modifier
  *
  * @return float
  */
 public function getChargeValueModifier()
 {
     if ($this->isXpc(true)) {
         list($authorized, $paid, $voided, $refunded) = $this->getXpcValues();
         $positive = max($authorized, $paid);
         $negative = $voided + $refunded;
         $value = $positive - $negative;
     } else {
         $value = parent::getChargeValueModifier();
     }
     return $value;
 }