GuidePayments & Subscriptions
Integrating PIX Billing
Automate instant license key provisioning, renewals, and tier upgrades upon confirmed PIX payments through webhooks.
PIX Subscription Lifecycle
NineAuth automates license expiration extension using the formula:
renewal-formula.ts
// Preserves remaining trial/subscription days + 30 days:
const newExpiry = Math.max(currentPeriodEnd.getTime(), Date.now()) + (30 * 24 * 60 * 60 * 1000);Handling Expired Transactions
PIX QR codes older than 30 minutes are automatically flagged as expired in NineAuth to prevent blocking fresh checkout sessions.