Beispiel #1
0
 /**
  * Returns the invoice of a customer
  * @param  string $invoiceId
  * @return array
  */
 public function invoice($invoiceId, $fromLocal = true)
 {
     if (!$this->subscription) {
         throw new CashewExceptions\NoSubscriptionException();
     }
     return $fromLocal ? $this->storage->getInvoice($this->subscription['user_id'], $invoiceId) : $this->gateway->invoice($invoiceId);
 }