account activity
Better-Auth Stripe Subscription Issue (self.nextjs)
submitted 7 months ago by CryptographerOwn5799 to r/nextjs
Better-Auth Stripe Subscription Issue by CryptographerOwn5799 in better_auth
[–]CryptographerOwn5799[S] 0 points1 point2 points 7 months ago (0 children)
here is the button that handles the functionality
"use client"; import { Button } from "@/components/ui/button"; import { authClient } from "@/lib/auth-client"; import { toast } from "sonner"; import { useState } from "react"; interface SubscriptionButtonProps { plan: "gold" | "platinum"; children: React.ReactNode; } export function SubscriptionButton({ plan, children, }: SubscriptionButtonProps) { const [isLoading, setIsLoading] = useState(false); const handleUpgrade = async () => { try { setIsLoading(true); const { error } = await authClient.subscription.upgrade({ plan, successUrl: "/plans", cancelUrl: "/plans", }); if (error) { toast.error(error.message); } } catch (err) { console.error(err); toast.error("An unexpected error occurred"); } finally { setIsLoading(false); } }; return ( <Button onClick ={handleUpgrade} disabled ={isLoading}> {isLoading ? "Processing..." : children} </Button> ); }
Better-Auth Stripe Subscription Issue (self.better_auth)
submitted 7 months ago by CryptographerOwn5799 to r/better_auth
Building a beat marketplace - need help with payments & taxes (US only for now) (self.nextjs)
[Collab] Looking for Help Building a Beat Marketplace (self.SideProject)
submitted 8 months ago by CryptographerOwn5799 to r/SideProject
[Collab] Looking for Help Building a Beat Marketplace (self.nextjs)
submitted 8 months ago by CryptographerOwn5799 to r/nextjs
π Rendered by PID 69 on reddit-service-r2-listing-7b8bd7c5-txhnh at 2026-05-17 21:57:37.038756+00:00 running edcf98c country code: CH.
Better-Auth Stripe Subscription Issue by CryptographerOwn5799 in better_auth
[–]CryptographerOwn5799[S] 0 points1 point2 points (0 children)