Complete foundation for building payment-powered apps. No crypto knowledge required.
A full-featured product creation and payment platform built with CDP Embedded Wallets. Your users just enter their email and pay - they'll never know it's crypto. Fork this template to build your own Gumroad, Buy Me a Coffee, Patreon, or any payment-powered business.
π― The CDP Advantage: Users authenticate with email, no seed phrases. Payments feel like PayPal/Venmo but work globally without restrictions.
π Generate API Keys
git clone https://github.com/Must-be-Ash/basedlink-pay
cd basedlink-pay
npm installcp .env.example .env.local
# Fill in your actual values in .env.localRequired Variables:
- CDP Project ID: CDP Portal Projects
- CDP API Credentials: CDP API Access
- MongoDB URI: MongoDB Atlas
- Vercel Blob Token: Vercel Dashboard
- Alchemy API Key: Alchemy Dashboard
npm run dev
# Visit http://localhost:3000 π- Digital art sales with instant settlement
- Course platforms with global payment access
- Creator tips for YouTube, blogs, podcasts
- Music/beats marketplace with instant royalties
- Freelance payments without restrictions
- Consultation booking (like Intro.co or Clarity.fm)
- Coaching, tutoring, expert Q&A
- Event ticketing with NFT proof-of-attendance
- Digital products: software, templates, design assets
- Subscription services with recurring payments
- Niche marketplaces for specific communities
- Crowdfunding without geographic restrictions
- Headless payment API for existing sites
- Component libraries with instant delivery
- SaaS billing for developer tools
- Open source funding buttons
- Email Authentication: No seed phrases or MetaMask
- Familiar Flow: Identical to PayPal/Stripe checkout
- Mobile-First: Works on all devices without extensions
- Instant Onboarding: Landing page to first payment in under 2 minutes
// The magic: Web3 payments that feel like Web2
<PaymentButton
amount={29.99}
description="Premium Course Access"
onSuccess={() => grantAccess()}
/>
// User experience: Enter email β Pay β Done- No Restrictions: Works in 100+ countries
- Instant Settlement: Payments confirmed in ~90 seconds
- Low Fees: Blockchain transactions cost cents, not percentages
- No Banking Required: Users don't need bank accounts or credit cards
- Complete Platform: User management, product creation, payments, dashboard
- Enterprise Security: Built-in compliance, policies, fraud protection
- Scalable Architecture: Next.js 14, TypeScript, MongoDB
- Fork-Ready: Customize branding and features in minutes
Frontend: Next.js 14, TypeScript, Tailwind CSS, CDP React Hooks Backend: API Routes, Alchemy blockchain verification, authentication Database: MongoDB with optimized schemas and indexing Security: Authentication middleware, transaction verification, input sanitization
# CDP Configuration
NEXT_PUBLIC_CDP_PROJECT_ID=your_cdp_project_id
CDP_API_KEY_NAME=your_cdp_api_key_name
CDP_PRIVATE_KEY=your_cdp_private_key
# Database & Storage
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/database
BLOB_READ_WRITE_TOKEN=your_vercel_blob_token
ALCHEMY_API_KEY=your_alchemy_api_key
# Application
NEXT_PUBLIC_BASE_URL=http://localhost:3000
API_KEY=your_random_api_key- β Email-based wallet creation (no seed phrases)
- β Product management system with image uploads
- β Blockchain-verified payments with real-time status
- β Business dashboard with analytics and reporting
- β Mobile PWA with QR code payments
- β Global payment processing in 100+ countries
- π CDP Documentation
- π¬ CDP Discord
- π GitHub Repo
- π¦ Contact Builder
π Quick Links CDP Portal β’ Live Demo β’ Fork Template β’ CDP Docs
Made by [@must_be_ash] (https://x.com/Must_be_Ash)
This is made by me and not an official CDP app. It's not perfect and it's not meant to be the end product though it's fully functional and production ready. I made this as your starting point so you don't have to start from scratch. It's meant to get you started to build your next idea π€
MIT License - feel free to use this template for your projects!