public function tab($description, $amount, array $options = [])
    {
        if (! $this->stripe_id) {
            throw new InvalidArgumentException(class_basename($this).' is not a Stripe customer. See the createAsStripeCustomer method.');
        }

        $options = array_merge([
            'customer' => $this->stripe_id,
            'amount' => $amount,
            'currency' => $this->preferredCurrency(),
            'description' => $description,
        ], $options);

        return StripeInvoiceItem::create($options, ['api_key' => $this->getStripeKey()]);
    }
public function tab($description, $amount, array $options = [])
    {
        if (! $this->stripe_id) {
            throw new InvalidArgumentException(class_basename($this).' is not a Stripe customer. See the createAsStripeCustomer method.');
        }

        $options = array_merge([
            'customer' => $this->stripe_id,
            'amount' => $amount,
            'currency' => $this->preferredCurrency(),
            'description' => $description,
        ], $options);

        return StripeInvoiceItem::create($options, ['api_key' => $this->getStripeKey()]);
    }
public function tab ( $ description , $ amount , array $ options = [ ] ) { if ( ! $ this -> stripe_id ) { throw new InvalidArgumentException ( class_basename ( $ this ) . ' is not a Stripe customer. See the createAsStripeCustomer method.' ) ; } $ options = array_merge ( [ 'customer' => $ this -> stripe_id , 'amount' => $ amount , 'currency' => $ this -> preferredCurrency ( ) , 'description' => $ description , ] , $ options ) ; return StripeInvoiceItem :: create ( $ options , [ 'api_key' => $ this -> getStripeKey ( ) ] ) ; }
Add an invoice item to the customer's upcoming invoice.

@param  string  $description
@param  int  $amount
@param  array  $options
@return \Stripe\InvoiceItem
@throws \InvalidArgumentException
Add an invoice item to the customer s upcoming invoice .