bugfix - added billing url

This commit is contained in:
James Wyndham 2024-02-29 13:10:07 +08:00
parent 291e80c623
commit de9ab44cdf
5 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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{

View File

@ -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();

View File

@ -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"
/>
<div className="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">

View File

@ -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 (
<div className='flex flex-col items-center pl-5 pr-5 text-center md:text-xl'>
<Image className=" w-[90px] p-3 md:w-[130px] p-5" src={CheckBox} alt={''} />
<p>Thanks for Signing Up!</p>
<p>We Hope You Are Excited To See</p>
<p>Sign365 In Action</p>
</div>
);
return (
<div className="flex flex-col items-center pl-5 pr-5 text-center md:text-xl">
<Image className=" w-[90px] md:w-[130px] p-5" src={CheckBox} alt={""} />
<p>Thanks for Signing Up!</p>
<p>We Hope You Are Excited To See</p>
<p>Sign365 In Action</p>
</div>
);
}
export default SuccessModal
export default SuccessModal;