Relative Content

Tag Archive for apinext.jsstripe-payments

How can I add more than one plan tier with Stripe?

//api/stripe import { auth, currentUser } from “@clerk/nextjs/server”; import { NextResponse } from “next/server”; import { prismadb } from “@/lib/prismadb”; import { stripe } from “@/lib/stripe”; import { absoluteUrl } from “@/lib/utils”; const billingUrl = absoluteUrl(“/billing”); export async function GET() { try { const { userId } = auth(); const user = await currentUser(); if […]