ComponentsButton Checkout
Opens a Stripe Checkout session. Perfect for a one-time payment or a subscription.
Set mode="payment"
for one-time payments or mode="subscription"
for recurring payments like a monthly membership.
By default the user must be logged in to checkout to prevent potential disputes like a fraudulent payment with a fake email. You can change that in the /create-checkout
endpoint in /api/stripe
API route
This component is used to create Stripe subscriptions and one-time payments.
Opens a Stripe Checkout session. Perfect for a one-time payment or a subscription.
Set mode="payment"
for one-time payments or mode="subscription"
for recurring payments like a monthly membership.
By default the user must be logged in to checkout to prevent potential disputes like a fraudulent payment with a fake email. You can change that in the /create-checkout
endpoint in /api/stripe
API route
This component is used to create Stripe subscriptions and one-time payments.

{page}.component.html
<app-button-checkout />