payments with stripe

Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
Omar Sánchez Pizarro
2026-01-21 02:20:13 +01:00
parent 626e3342d0
commit cc6ffdc5a5
16 changed files with 1441 additions and 44 deletions

View File

@@ -1331,6 +1331,7 @@ export async function updateUserSubscription(username, subscriptionData) {
subscription: {
planId: subscriptionData.planId || 'free',
status: subscriptionData.status || 'active',
billingPeriod: subscriptionData.billingPeriod || 'monthly',
currentPeriodStart: subscriptionData.currentPeriodStart || new Date(),
currentPeriodEnd: subscriptionData.currentPeriodEnd || null,
cancelAtPeriodEnd: subscriptionData.cancelAtPeriodEnd || false,