From de9ab44cdf55b60b770fc20157808dcdf16db29e Mon Sep 17 00:00:00 2001 From: James Wyndham Date: Thu, 29 Feb 2024 13:10:07 +0800 Subject: [PATCH] bugfix - added billing url --- Backend/fly.toml | 1 + Backend/main.go | 4 ++-- Frontend/app/(auth)/actions.ts | 1 - .../Hero/WaitingListWithImageHero.tsx | 2 +- Frontend/sections/SuccessModal.tsx | 22 +++++++++---------- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Backend/fly.toml b/Backend/fly.toml index f79b8f2..2fde9c5 100644 --- a/Backend/fly.toml +++ b/Backend/fly.toml @@ -14,6 +14,7 @@ primary_region = 'syd' PORT = '8090' STRIPE_SUCCESS_URL = 'https://www.fastpocket.dev/account' STRIPE_CANCEL_URL = 'https://www.fastpocket.dev/pricing' + STRIPE_BILLING_RETURN_URL = 'https://www.fastpocket.dev/account' # requires STRIPE_SECRET_KEY = '{sk_live_...}' to be setup as a secret # see: https://fly.io/docs/reference/secrets/#setting-secrets diff --git a/Backend/main.go b/Backend/main.go index a4fade3..4779472 100644 --- a/Backend/main.go +++ b/Backend/main.go @@ -58,7 +58,7 @@ func main() { // 1. Destructure the price and quantity from the POST body body := c.Request().Body defer body.Close() - payload, err := io.ReadAll(body) + payload, _ := io.ReadAll(body) var data map[string]interface{} json.Unmarshal([]byte(payload), &data) @@ -549,7 +549,7 @@ func main() { } //Update User Details - existingUserRecord, err := app.Dao().FindFirstRecordByData("user", "id", uuid) + existingUserRecord, _ := app.Dao().FindFirstRecordByData("user", "id", uuid) var userForm = forms.NewRecordUpsert(app, existingUserRecord) userForm.LoadData(map[string]any{ diff --git a/Frontend/app/(auth)/actions.ts b/Frontend/app/(auth)/actions.ts index a411457..f1483bc 100644 --- a/Frontend/app/(auth)/actions.ts +++ b/Frontend/app/(auth)/actions.ts @@ -264,7 +264,6 @@ export async function createManagementSubscriptionSession() { ); if (createManagementSessionResponse.status !== 200) { console.log(createManagementSessionResponse.status) - console.log(JSON.stringify( await createManagementSessionResponse.json())) throw new Error(JSON.stringify( await createManagementSessionResponse.json())); } const createManagementSessionData: SubscriptionSession = await createManagementSessionResponse.json(); diff --git a/Frontend/sections/Hero/WaitingListWithImageHero.tsx b/Frontend/sections/Hero/WaitingListWithImageHero.tsx index cc9ab94..429ef34 100644 --- a/Frontend/sections/Hero/WaitingListWithImageHero.tsx +++ b/Frontend/sections/Hero/WaitingListWithImageHero.tsx @@ -109,7 +109,7 @@ const WaitingListWithImageHero = () => { {...register("lastName")} type="text" id="hs-cover-with-gradient-form-name-1" - className=" py-3 ps-11 pe-4 block w-full bg-base-100/[.03] border-white/20 placeholder:text-base-content dark:placeholder:bg-base-contentntent placeholder:text-base-content rounded-lg text-sm focus:border-white/30 focus:ring-white/30 sm:p-4 sm:ps-11" + className=" py-3 ps-11 pe-4 block w-full bg-base-100/[.03] border-white/20 dark:placeholder:bg-base-contentntent placeholder:text-base-content rounded-lg text-sm focus:border-white/30 focus:ring-white/30 sm:p-4 sm:ps-11" placeholder="Last name" />
diff --git a/Frontend/sections/SuccessModal.tsx b/Frontend/sections/SuccessModal.tsx index ce46176..bb552e5 100644 --- a/Frontend/sections/SuccessModal.tsx +++ b/Frontend/sections/SuccessModal.tsx @@ -1,16 +1,16 @@ -import React from 'react'; +import React from "react"; import CheckBox from "@/images/check-box.svg"; -import Image from "next/image" +import Image from "next/image"; function SuccessModal() { - return ( -
- {''} -

Thanks for Signing Up!

-

We Hope You Are Excited To See

-

Sign365 In Action

-
- ); + return ( +
+ {""} +

Thanks for Signing Up!

+

We Hope You Are Excited To See

+

Sign365 In Action

+
+ ); } -export default SuccessModal \ No newline at end of file +export default SuccessModal;