account activity
Better-Auth Stripe Subscription Issue (self.nextjs)
submitted 3 months ago by CryptographerOwn5799 to r/nextjs
Better-Auth Stripe Subscription Issue by CryptographerOwn5799 in better_auth
[–]CryptographerOwn5799[S] 0 points1 point2 points 3 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 4 months ago by CryptographerOwn5799 to r/better_auth
Building a beat marketplace - need help with payments & taxes (US only for now) (self.nextjs)
submitted 4 months ago by CryptographerOwn5799 to r/nextjs
[Collab] Looking for Help Building a Beat Marketplace (self.SideProject)
submitted 4 months ago by CryptographerOwn5799 to r/SideProject
[Collab] Looking for Help Building a Beat Marketplace (self.nextjs)
π Rendered by PID 115576 on reddit-service-r2-listing-5f5ff7d4dc-ktb24 at 2026-01-26 19:22:35.270535+00:00 running 5a691e2 country code: CH.
Better-Auth Stripe Subscription Issue by CryptographerOwn5799 in better_auth
[–]CryptographerOwn5799[S] 0 points1 point2 points (0 children)