Core concepts
Managing Subscription Cycles
Learn how to manage recurring payments and subscription cycles with VPAY, a premium payment platform designed for businesses that offer ongoing services and memberships.
๐ Understanding the Billing Cycle
VPAY supports seamless integration with subscription-based billing models. Whether you're offering monthly, yearly, or custom billing cycles, VPAY helps you manage:
- Initial setup of recurring charges
- Trial period handling
- Auto-renewal and cancellation
- Prorated billing and plan upgrades
๐ Subscription Flow Overview
Hereโs an example of how VPAY handles recurring payments:
// Example: Create a subscription
const subscription = await gateway.createSubscription({
customer: 'customer_id',
planId: 'monthly_premium',
trialDays: 7,
startDate: new Date(),
})