Setup and Work with Stripe for Payments
config.payments.enabled
to true
in config.ts
.env
file:
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
STRIPE_SECRET_KEY
https://[your-production-domain]/api/payments/webhook
d. Select the following events:
customer.subscription.created
customer.subscription.updated
customer.subscription.deleted
checkout.session.completed
invoice.payment_succeeded
invoice.payment_failed