# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://readysaas.gitbook.io/docs/guides/payments-and-subscriptions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
