Skip to content

Commit

Permalink
Move Stripe to a new account (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobenjada committed Jul 20, 2023
1 parent 06d620d commit 7475df1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
3 changes: 1 addition & 2 deletions apps/web/app/(app)/billing-confirmation/ConfirmationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default function ConfirmationPage() {
<div className="my-6 sm:flex-auto">
<h1 className="text-center text-xl font-semibold text-slate-900">Upgrade successful</h1>
<p className="mt-2 text-center text-sm text-slate-700">
Thanks a lot for upgrading your formbricks subscription. You can now access all features and
improve your user research.
Thanks a lot for upgrading your Formbricks subscription. You have now unlimited access.
</p>
</div>
<Button variant="darkCTA" className="w-full justify-center" href="/">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function EnvironmentsNavbar({ environmentId, session }: Environme
icon: CreditCardIcon,
label: "Billing & Plan",
href: `/environments/${environmentId}/settings/billing`,
hidden: IS_FORMBRICKS_CLOUD,
hidden: !IS_FORMBRICKS_CLOUD,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import type { Session } from "next-auth";
import { useRouter } from "next/navigation";
import { useState } from "react";

// upated on 20th of July 2023
const stripeURl =
process.env.NODE_ENV === "production"
? "https://buy.stripe.com/28o00R4GDf9qdfa5kp"
: "https://buy.stripe.com/test_9AQfZw5CL9hmcXSdQQ";
? "https://buy.stripe.com/5kA9ABal07ZjgEw3cc"
: "https://buy.stripe.com/test_8wMaHA3UWcACfuM3cc";

interface PricingTableProps {
environmentId: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
import { authOptions } from "@/app/api/auth/[...nextauth]/authOptions";
import { Button } from "@formbricks/ui";
import { getServerSession } from "next-auth";
import SettingsCard from "../SettingsCard";
import SettingsTitle from "../SettingsTitle";
import PricingTable from "./PricingTable";

const proPlan = false;

export default async function ProfileSettingsPage({ params }) {
const session = await getServerSession(authOptions);
return (
<div>
<SettingsTitle title="Billing & Plan" />
{proPlan ? (
<SettingsCard
title="Manage subscription"
description="View, update and cancel your subscription in the billing portal.">
<Button variant="darkCTA">Billing Portal</Button>
</SettingsCard>
) : (
<PricingTable environmentId={params.environmentId} session={session} />
)}
<PricingTable environmentId={params.environmentId} session={session} />
</div>
);
}

2 comments on commit 7475df1

@vercel
Copy link

@vercel vercel bot commented on 7475df1 Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

formbricks-com – ./apps/formbricks-com

formbricks-com-formbricks.vercel.app
formbricks-com-git-main-formbricks.vercel.app
formbricks-com.vercel.app
formbricks.com
www.formbricks.com

@vercel
Copy link

@vercel vercel bot commented on 7475df1 Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.