Skip to content

Commit

Permalink
docs: update subscriptions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-xo committed May 5, 2024
1 parent a5bd82b commit 978c0be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/03-subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ First of all, you'll need to create a Stripe Account and get your API Keys. This

Remix SaaS defines a few Subscription Plans in the `/modules/stripe/plans` file. You can customize these plans to fit your needs.

- Remember to migrate your database to seed the plans or any other changes you've made.
- Remember to migrate/seed your database to update the plans or any other changes you've made.

In order to use the Subscription System, Remix SaaS will create a Customer in Stripe and subscribe it to a Free Plan by default.

Expand All @@ -32,7 +32,7 @@ Yes, you can test Subscriptions in Remix SaaS by using the following Stripe Test
- `4242 4242 4242 4242` (Visa)
- `5555 5555 5555 4444` (Mastercard)

Remember that in order to test Subscriptions and handle events, you'll need to use the Stripe CLI by running the following command:
Remember that in order to test Subscriptions and handle events, you'll need to use the [Stripe CLI.](https://stripe.com/docs/stripe-cli) by running the following command:

```sh
stripe listen --forward-to localhost:3000/api/webhook
Expand All @@ -44,6 +44,9 @@ Yes, you can customize Subscriptions in Remix SaaS by editing the following file

- `/modules/stripe/plans`: Define your Subscription Plans.

> [!NOTE]
> Any changes made to the Subscription Plans will require you to migrate/seed your database in order to update the plans. That also includes "Deleting Stripe Test Data" and "Re-Seeding the Database".
## Can we use another Payment Provider instead of Stripe?

Sadly no, although Remix SaaS is built to be flexible, it's currently only compatible with Stripe.
Expand Down

0 comments on commit 978c0be

Please sign in to comment.