Skip to content

A digital product sales platform that accepts payments in USD and USDC, enabling creators to sell content and subscription services. WIP

License

Notifications You must be signed in to change notification settings

Astronaut828/SE2_IdeaBox

Repository files navigation

🏗 IdeaBox (WIP)

A platform for creators to sell digital content and subscription services payment via USDC and Credit Card, built on Scaffold-ETH 2.

⚠️ Test Mode Instructions

Currently the app is in test mode, so you can test the USDC payment as well as the Card payment method:

1. For Crypto Payment: (only on local network)
   - Use the faucet to get some ETH
   - The payment will be successful but will send test ETH
   - ETH will be transferred on Localhost instead of USDC on live chain

2. For Credit Card Payment: (works on live demo)
   - Test Card Number: 4242 4242 4242 4242
   - CVC: Any 3 digits
   - Expiry Date: Any future date

3. Development Environment:
   - All features run on localhost for testing
   - Free tier available for all integrations (Privy, Stripe, Upstash)
   - Perfect for testing product demand before upgrading to paid tiers

📚 Documentation Links

🎯 Project Overview

This platform enables creators to:

  • Sell downloadable digital content
  • Offer subscription-based services
  • Receive payments in both crypto and fiat currencies
  • Store user data and session management with Redis

🔧 Technical Stack

Core Infrastructure

Authentication & Payments

  • Privy - Web3 Authentication

  • Stripe - Payment Processing

Database & Caching

🌟 Key Features

  • Content Marketplace

    • Upload and sell digital content
    • Content preview functionality
  • Subscription System

    • Time-based access control
    • Recurring payment handling
    • Membership benefits management
    • Subscription management
  • Payment Options

    • Cryptocurrency payments (USDC)
    • Fiat currency integration via Stripe
    • Automated revenue distribution

🚀 Quick Start of the project / Scaffold-ETH 2 app

Prerequisites

Before you begin, you need to install the following tools:

1. Create a .env.local file in the packages/nextjs directory:

Service Account Setup

Privy Setup

  1. Go to Privy Dashboard
  2. Create a new project
  3. Copy your APP_ID from the dashboard

Stripe Setup

  1. Create a Stripe Account
  2. Get your API keys from the Stripe Dashboard

Upstash Redis Setup

  1. Create account at Upstash
  2. Create new Redis database
  3. Get your REST URL and TOKEN from the database details page

2. Start a local chain

yarn chain

3. Start your NextJS app

in a new terminal, run:

yarn start

Visit your app at: http://localhost:3000

📝 Additional Commands

# Rebuild contracts if you make changes
yarn contracts:build

# Run contract tests
yarn test

# Build for production
yarn build

About

A digital product sales platform that accepts payments in USD and USDC, enabling creators to sell content and subscription services. WIP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published