QuickWrap
Components > Checkout Button
1. RevenueCat
Page.tsx
The CheckoutButton component handles in-app purchases and subscriptions using RevenueCat's UI. It displays a paywall when required onOpenRCPaywall and processes the transaction. On successful payment, it triggers onPaymentSuccess, otherwise, it calls onPaymentFailed. It supports both subscriptions and one-time purchases type and ensures a smooth user experience with a loading state.