prepare("SELECT credits FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $current_credits = $stmt->fetchColumn() ?: 0; // Fetch active packages $packages = $db->query("SELECT * FROM credit_packages WHERE is_active = 1 ORDER BY price_amount ASC")->fetchAll(); // Fetch Stripe publishable key $stripe_pk = $db->query("SELECT setting_value FROM stripe_config WHERE setting_key = 'stripe_publishable_key'")->fetchColumn(); // Fetch user invoices $stmt = $db->prepare("SELECT * FROM invoices WHERE user_id = ? ORDER BY created_at DESC"); $stmt->execute([$_SESSION['user_id']]); $invoices = $stmt->fetchAll(); ?> Purchase Credits — <?php echo htmlspecialchars($project_name); ?>

Refill LPA Credits

Select the most appropriate package to continue creating your Lasting Power of Attorney documents.

Current Balance: Credits

LPA Credits
Billing History
Invoice # Date Amount Status Receipt
# Download PDF Pending