Black Friday Sale 40% Off•Sale end soon

PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Docs
  • Introduction
  • Installation
Starter
  • Overview
  • Getting Started
  • Folder Structure
  • AI
  • Auth Basic
  • Auth OAuth
  • Database
  • Documentation
  • Email Resend
  • Payment Creem
  • Payment Polar
  • Storage
  1. Docs
PreviousNext

Creem (Payment)

Creem payments in the PaceUI Starter for Next.js and TanStack Start.

This guide walks through adding Polar payments with Better Auth in a TanStack Start project, covering environment setup, webhooks, product creation, and a complete payment flow.

1. Set your environment variables

.env
CREEM_API_KEY=
CREEM_WEBHOOK_SECRET=

2. Set webhook to creem

Register the full route from your project inside the Webhooks area of the Creem dashboard.
Store the Creem webhook secret inside your environment values.

3. Configure the Subscriptions

Create your products and tiers inside the Creem dashboard. This produces the unique product ids needed for your subscription flow.

Copy these ids into your project config file to link your subscription logic with Creem.

data.ts
export const subscriptionPlans = [
  {
      slug: "starter-monthly",
      productId: "xxxxxxxx-...",
      name: "Starter",
      //...
  },
  //...
];

4. Pricing Component

The pricing component presents your available plans and guides the visitor through the full subscription flow based on the values you placed in your subscription settings.

Pricing.tsx
import { Pricing } from "@/components/payments/creem/Pricing";

<Pricing />;
Email ResendPayment Polar

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI