Skip to content

Subscription

The Subscription class represents a single Steady Subscription from a member.

php
$subscription = steady()->subcriptions()->first();

Methods

  • cancel(): void
  • subscriber(): array|null
  • gifter(): array|null
  • plan(): array|null

Examples

php
$subscription = steady()->subscriptions()->find('8ef509c7-b8fe-4a56-a366-fadf030bfc64');
$subscriber = $subcription->subscriber();
php
$subscription = steady()->subscriptions()->find('8ef509c7-b8fe-4a56-a366-fadf030bfc64');
$subscriptionGifter = $subcription->gifter();
php
$subscription = steady()->subscriptions()->find('8ef509c7-b8fe-4a56-a366-fadf030bfc64');
$subscribedPlan = $subcription->plan();
php
$subscription = steady()->subscriptions()->find('8ef509c7-b8fe-4a56-a366-fadf030bfc64');
$subcription->cancel();