max user limits + check plan active on webhook + flow tweaks
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
<p>Current Period Ends: {{ formatDate(activeMembership?.account.current_period_ends) }}</p>
|
||||
<p>Permitted Features: {{ activeMembership?.account.features }}</p>
|
||||
<p>Maximum Notes: {{ activeMembership?.account.max_notes }}</p>
|
||||
<p>Maximum Members: {{ activeMembership?.account.max_members }}</p>
|
||||
<p>Access Level: {{ activeMembership?.access }}</p>
|
||||
<p>Plan: {{ activeMembership?.account.plan_name }}</p>
|
||||
|
||||
<template v-if="config.public.debugMode">
|
||||
<p>******* Debug *******</p>
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<h3>Index</h3>
|
||||
<button @click="supabase.auth.signInWithOAuth({provider: 'google'})">Sign In with Google</button>
|
||||
<button @click="supabase.auth.signInWithOAuth({provider: 'google'})">Connect with Google</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -9,9 +9,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<h3>Pricing</h3>
|
||||
<div>
|
||||
<label for="submit">Free Trial (1 Month)</label>
|
||||
<NuxtLink to="/dashboard">Continue to Dashboard</NuxtLink>
|
||||
</div>
|
||||
|
||||
<form action="/create-checkout-session" method="POST">
|
||||
<label for="submit">Individual Plan, Normal Price</label>
|
||||
<input type="hidden" name="price_id" value="price_1MfaKVJfLn4RhYiLgruKo89E" />
|
||||
<input type="hidden" name="price_id" value="price_1MpOiwJfLn4RhYiLqfy6U8ZR" />
|
||||
<input type="hidden" name="account_id" :value="activeMembership?.account_id" />
|
||||
|
||||
<button type="submit" :disabled="!activeMembership || (activeMembership.access !== ACCOUNT_ACCESS.OWNER && activeMembership.access !== ACCOUNT_ACCESS.ADMIN)">Checkout</button>
|
||||
@@ -19,7 +24,7 @@
|
||||
|
||||
<form action="/create-checkout-session" method="POST">
|
||||
<label for="submit">Team Plan, Normal Price</label>
|
||||
<input type="hidden" name="price_id" value="price_1MfaM6JfLn4RhYiLPdr1OTDS" />
|
||||
<input type="hidden" name="price_id" value="price_1MpOjtJfLn4RhYiLsjzAso90" />
|
||||
<input type="hidden" name="account_id" :value="activeMembership?.account_id" />
|
||||
|
||||
<button type="submit" :disabled="!activeMembership || (activeMembership.access !== ACCOUNT_ACCESS.OWNER && activeMembership.access !== ACCOUNT_ACCESS.ADMIN)">Checkout</button>
|
||||
|
||||
Reference in New Issue
Block a user