Utilities
Helper Functions
Essential utility functions for URL handling, logging, and purchase management
URL Utilities
Get the full URL path based on your site URL and locale settings.
Request Utilities
Extract the client IP address from incoming requests, supporting both Cloudflare and Vercel deployments.
Logging
Create a log entry in the database for tracking and monitoring.
Purchase Management
Purchase Utilities
Get the configuration object for a purchase.
Get the configured name for a purchase.
Check if a user has an active purchase for a specific product.
Subscription Utilities
Get the configuration object for a subscription plan.
Get the configured name for a subscription plan.
Check if a user has an active subscription for a specific plan.