From 962646d8b3b91e9763f7245db812b869e0172faf Mon Sep 17 00:00:00 2001 From: Harish Mohan Raj Date: Thu, 11 Jan 2024 20:07:20 +0530 Subject: [PATCH] Fix stripe issues (#94) --- .github/workflows/pipeline.yml | 5 +++-- src/client/AccountPage.tsx | 10 +++++----- src/client/PricingPage.tsx | 14 +++++++------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index ef192e5..079b8c5 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -11,8 +11,6 @@ env: DATABASE_URL: ${{ secrets.DATABASE_URL }} JWT_SECRET: ${{ secrets.JWT_SECRET }} ADS_SERVER_URL: ${{ vars.ADS_SERVER_URL }} - STRIPE_KEY: ${{ secrets.STRIPE_KEY }} - SUBSCRIPTION_PRICE_ID: ${{ secrets.SUBSCRIPTION_PRICE_ID }} jobs: unit_test: @@ -85,6 +83,9 @@ jobs: GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} + STRIPE_KEY: ${{ secrets.STRIPE_KEY }} + SUBSCRIPTION_PRICE_ID: ${{ secrets.SUBSCRIPTION_PRICE_ID }} + CREDITS_PRICE_ID: ${{ secrets.CREDITS_PRICE_ID }} steps: - uses: actions/checkout@v3 # This is to fix GIT not liking owner of the checkout dir - https://github.com/actions/runner/issues/2033#issuecomment-1204205989 diff --git a/src/client/AccountPage.tsx b/src/client/AccountPage.tsx index 31ffe87..7beb836 100644 --- a/src/client/AccountPage.tsx +++ b/src/client/AccountPage.tsx @@ -33,7 +33,7 @@ export default function Example({ user }: { user: User }) {
- {/*
+
Credits remaining
<> @@ -44,7 +44,7 @@ export default function Example({ user }: { user: User }) { isLoading={isLoading} setIsLoading={setIsLoading} /> - */} + {/*
Your Plan
{user.hasPaid ? ( <> @@ -68,7 +68,7 @@ export default function Example({ user }: { user: User }) { )} */} -
Your Plan
+ {/*
Your Plan
{user.hasPaid ? ( <>
@@ -89,7 +89,7 @@ export default function Example({ user }: { user: User }) { setIsLoading={setIsLoading} /> - )} + )} */}
About
@@ -146,7 +146,7 @@ function BuyMoreButton({ return (

- {!isLoading ? Upgrade Plan : "Loading..."} + {!isLoading ? Buy More : "Loading..."}

{/*