Tutorials
Create One-Time Payment
Learn how to implement one-time payments in your Indie Kit application
Create One-Time Payment 💰
Let's implement one-time payments in your Indie Kit application! 🚀
Prerequisites ✅
-
Set up a payment gateway:
-
Create a plan in the database:
- Go to
/super-admin/plans
- Add plan details (name, features, quotas)
- Enable one-time pricing (
hasOnetimePricing: true
) - Add one-time price ID from your payment gateway
- Go to
Implementation 🛠️
Use the getSubscribeUrl
helper with PlanType.ONETIME
:
Usage Example 📝
Here's a complete example of a one-time payment button component:
Best Practices 💡
-
Plan Configuration
- Set appropriate lifetime value
- Keep price competitive with subscription
- Clear feature list
- Proper price ID mapping
-
User Experience
- Clear pricing display
- Highlight lifetime value
- Show feature comparison
- Clear payment process
-
Testing
- Test payment flow
- Verify access after payment
- Check webhook handling
- Test with both payment gateways
Common Use Cases 🎯
- Lifetime access to software
- Digital product sales
- Course access
- Premium features unlock
Now you can implement one-time payments in your Indie Kit application! 🎉