public function asStripeSubscription()
    {
        $subscriptions = $this->user->asStripeCustomer()->subscriptions;

        if (! $subscriptions) {
            throw new LogicException('The Stripe customer does not have any subscriptions.');
        }

        return $subscriptions->retrieve($this->stripe_id);
    }
public function asStripeSubscription()
    {
        $subscriptions = $this->user->asStripeCustomer()->subscriptions;

        if (! $subscriptions) {
            throw new LogicException('The Stripe customer does not have any subscriptions.');
        }

        return $subscriptions->retrieve($this->stripe_id);
    }
public function asStripeSubscription ( ) { $ subscriptions = $ this -> user -> asStripeCustomer ( ) -> subscriptions ; if ( ! $ subscriptions ) { throw new LogicException ( 'The Stripe customer does not have any subscriptions.' ) ; } return $ subscriptions -> retrieve ( $ this -> stripe_id ) ; }
Get the subscription as a Stripe subscription object.

@return \Stripe\Subscription
@throws \LogicException
Get the subscription as a Stripe subscription object .