PreLaunch comes with comprehensive payment capabilities, allowing you to monetize your product even during the pre-launch phase. The template includes integration with Paddle, giving you a powerful system to handle transactions.
PreLaunch includes a ready-to-use pricing component that you can easily customize:
Copy
import { Pricing } from '@/components/landing/Pricing';export default function PricingPage() { return ( <div className="pricing-page"> <h1>Choose Your Plan</h1> <p>Select the plan that best fits your needs</p> <Pricing /> </div> );}
# Paddle ConfigurationPADDLE_SANDBOX=true # Set to false for productionPADDLE_API_KEY=your-api-key-herePADDLE_NOTIFICATION_WEBHOOK_SECRET=your-webhook-secret-hereNEXT_PUBLIC_PADDLE_CLIENT_TOKEN=your-paddle-client-token-here
Ensure that your environment variables are correctly set up, including the client token for Paddle. Check your browser console for any errors.
Webhooks not receiving events
Verify that your webhook URLs are correctly configured in your Paddle dashboard and that your webhook secrets match what’s in your environment variables.
Customer portal not loading
Check that the user is authenticated and has an active subscription. Verify that the correct customer ID is being passed to the portal component.