subscriptions->isIncomplete($subscription); } public function isSubscriptionPastDue(Subscription $subscription): bool { return $this->subscriptions->isPastDue($subscription); } public function isEnabled(): bool { return (bool) app(Settings::class)->get('billing.paypal.enable'); } public function syncPlan(Product $product): bool { return $this->plans->sync($product); } public function deletePlan(Product $product): bool { return $this->plans->delete($product); } public function changePlan( Subscription $subscription, Product $newProduct, Price $newPrice, ): bool { return $this->subscriptions->changePlan( $subscription, $newProduct, $newPrice, ); } public function cancelSubscription( Subscription $subscription, bool $atPeriodEnd = true, ): bool { return $this->subscriptions->cancel($subscription, $atPeriodEnd); } public function resumeSubscription( Subscription $subscription, array $gatewayParams = [], ): bool { return $this->subscriptions->resume($subscription, $gatewayParams); } }