コード例 #1
0
 /**
  * Get the discount amount for the invoice.
  *
  * @return float|null
  */
 public function amountOff()
 {
     if (isset($this->discount->coupon->amount_off)) {
         return $this->billable->formatCurrency($this->discount->coupon->amount_off);
     }
 }
コード例 #2
0
ファイル: StripeGateway.php プロジェクト: bankorh/cashier
 /**
  * Get the currency for the billable entity.
  *
  * @return string
  */
 protected function getCurrency()
 {
     return $this->billable->getCurrency();
 }
コード例 #3
0
 /**
  * Get the total for the line item.
  *
  * @return float
  */
 public function total()
 {
     return $this->billable->formatCurrency($this->amount);
 }