- Refine and expand best practices for: - AI SDK - Date-fns - Next.js - Radix UI - React - React Hook Form - Stripe - Tailwind CSS - TypeScript - Zustand - Improve guidelines with more specific and actionable recommendations - Enhance type safety and performance suggestions across different technologies
12 lines
455 B
Plaintext
12 lines
455 B
Plaintext
---
|
|
description: Best practices for integrating Stripe payments
|
|
globs: **/*.{ts,tsx}
|
|
alwaysApply: false
|
|
---
|
|
|
|
- Use the `@stripe/stripe-js` package for client-side Stripe integration.
|
|
- Implement proper error handling and user feedback for payment flows.
|
|
- Utilize Stripe's Elements for secure, customizable payment inputs.
|
|
- Leverage Stripe's Webhooks for real-time payment status updates.
|
|
- Follow Stripe's best practices for PCI compliance and security
|