Docs
Use a subscription system of Stripe in DoFastPro

Use a subscription system of Stripe in DoFastPro

How to use a subscription system of Stripe in DoFastPro

Types of payment system in Stripe

Stripe has two types of payment intents: one for the subscription and one for the one-time purchase (payment). DoFastPro allows you to use both types of payment intents.

Initial steps

After you added a product (subscription or one-time purchase) in Stripe with this guide, you can edit prices (value stripePriceID) in prices.ts file.

Decide which payment system to use

By default, DoFastPro uses a one-time purchase system. If you decide to use a subscription system, you need to replace the function onPricePayment with onSubscriptionPayment (placed in apps/web/src/utils/stripe/ folder) in two price components

apps/web/src/components/Buttons/PurchaseButton/PurchaseButton.tsx

and

apps/web/src/components/Buttons/PriceButton/PriceButton.tsx files.