Code Integration
Integrate Creem into your application with our SDKs and APIs
No-Code Solution
Create a payment link and start selling without writing code
Code Integration
Integrate Creem directly into your application. It’s as easy as the following:1. Get access & your API key
Sign up at creem.io to get started. Once your account is created, navigate to the Developers section in your dashboard and copy your API key.2. Install and create a checkout
- Next.js
- TypeScript SDK
- Better Auth
- REST API
Install the Next.js adapter for the fastest integration with built-in routes and components.Add your API Key as environment variable:Create a checkout API route:Add a checkout button to your page:
Next.js Adapter Docs
Learn about advanced features, webhooks, and server components.
3. Handle successful payments
After payment, users are redirected to yoursuccess_url with payment details:
Complete Working Example
Here’s a full Next.js App Router example you can copy and run. This includes everything: checkout creation, success page, and webhook handling.Project Structure
1. Environment Variables
2. Creem Client Setup
3. Checkout API Route
4. Webhook Handler
5. Buy Button Component
6. Success Page
Running the Example
- Install dependencies:
- Create a product in the Creem dashboard
-
Copy the product ID (starts with
prod_) and updateapp/page.tsx -
Get your webhook secret from the dashboard and add to
.env.local - Run the development server:
- Visit
http://localhost:3000and click “Buy Now”
In test mode, use test card number with any future expiry date
and any CVC.
No-Code Solution
Perfect for creators, vibe coders, and anyone who wants to start selling quickly without code.1. Create a product
Go to the products tab in your dashboard and create your first product with a name, description, and price.2. Share your payment link
Click the Share button on your product to get your payment link. Send it to customers via email, social media, or anywhere else.
That’s it! You’re ready to accept payments.
Learn More About Payment Links
Explore advanced customization options, custom fields, and more.
Next Steps
Test Mode
Learn how to test your integration without real payments
Checkout
Create payment links and accept payments without code.
Subscriptions
Set up recurring billing and subscription management
Webhooks
Set up webhooks to receive real-time payment notifications