Skip to content

Commit

Permalink
fix: lifetime payment checkout error
Browse files Browse the repository at this point in the history
  • Loading branch information
aexshafii committed Jan 10, 2025
1 parent 7d6fc2b commit b29df75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/web/app/dashboard/pricing/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export async function createPayOnceLifetimeCheckout() {
if (!userId) throw new Error("Not authenticated");
const metadata = {
userId,
type: "pay-once",
type: PRODUCTS.PayOnceLifetime.metadata.type,
plan: PRODUCTS.PayOnceLifetime.metadata.plan,
};

const { success, cancel, lifetime } = getUrls();
Expand Down
7 changes: 6 additions & 1 deletion packages/web/srm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ export type SubscriptionWebhookEvent =

// Product and plan types for type safety
export type ProductType = "subscription" | "lifetime" | "top_up";
export type Plan = "monthly" | "yearly" | "lifetime" | "top_up";
export type Plan =
| "monthly"
| "yearly"
| "lifetime_license"
| "one_year_license"
| "top_up";
export type PlanType = "subscription" | "pay-once";

// Pricing configuration
Expand Down

0 comments on commit b29df75

Please sign in to comment.