# Payments & Subscriptions

Ready SaaS simplifies the process of integrating payments and subscriptions into your website, allowing you to focus on delivering value to your customers.

### Subscription Lifecycle Management

The subscription management system implemented in Ready SaaS respond to the following webhook events from supported payment providers (Stripe, Paypal):

* On Subscription Activated:

  Automatically provisions the subscription for the user, granting them access to the subscribed content or features.
* On Payment Received:

  The system continues to provision the subscription and updates the subscription's end date to reflect the new billing cycle.
* On Payment Failed:

  Marks the subscription as past due and triggers a notification to the customer to update their payment information.

### Background Task for Expired Subscriptions

A scheduled task runs in the background to deactivate subscriptions that have expired and surpassed a grace period of 3 days, allowing a short buffer for payment issues to be resolved.

You can find and edit this task definition at: `orders/tasks.py`

<br>
