Button Checkout
Here is a smooth and natural English translation of the section:
๐งพ Start a Stripe Checkout Session¶
Launch a Stripe Checkout session โ Perfect for one-time payments or recurring subscriptions.
โ๏ธ Setup¶
- Use
mode="payment"
for one-time payments - Or
mode="subscription"
for recurring payments like a monthly plan
๐ Security¶
By default, users must be logged in to complete the payment to help prevent issues like fraudulent payments with fake emails.
๐ You can change this behavior in the API route:
/api/stripe/create-checkout/route.js
๐งฉ Usage¶
This component is used to handle:
- Stripe subscriptions
- One-time payments