Skip to content

Void-Software-Inc/payments-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

224 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌊 Drift - Sui Blockchain Payment Platform

Drift Logo

A modern, secure payment platform built on the Sui blockchain

Next.js TypeScript Sui Account.tech

🎯 Our Vision

The future of payments is transparent, efficient, and accessible. Drift represents the next generation of payment infrastructure, leveraging blockchain technology to create seamless financial interactions.

πŸ’‘ What We're Building

Drift is a secure and extensible payment platform built on Sui blockchain, designed to empower:

  • ⚑ Instant transactions with minimal costs
  • πŸ’° Multi-currency support (SUI, USDC) with optional tips
  • πŸͺ Merchant-focused tools for businesses to create and manage payment requests
  • πŸ“± Mobile-first experience with QR code integration
  • πŸ” Advanced security including social recovery and backup addresses
  • πŸ”— Seamless integration capabilities for existing systems
  • 🎁 Extensible architecture ready for future innovations

🎯 How It Works

  1. Merchants create payment accounts and issue payment requests with custom descriptions and amounts
  2. Customers receive payment links or scan QR codes to complete transactions instantly
  3. Security is enhanced through social recovery options and backup addresses, eliminating single points of failure
  4. Transparency is built-in with all transactions recorded on the Sui blockchain

πŸ‘₯ Who We Serve

  • Businesses seeking modern, cost-effective payment solutions
  • Developers building payment applications and integrations
  • Users who value transparent and efficient payment methods
  • DeFi projects requiring composable payment infrastructure

πŸ“± Mobile-First Design

Drift is optimized for mobile use and works seamlessly with the Nightly wallet app on mobile devices, providing a native-like experience for both merchants and customers.

πŸ“Έ Screenshots

Landing Page - Wallet Connection Wallet Dashboard Payment Processing with QR Scanner

Mobile-optimized interface designed for use with Nightly wallet app

✨ Key Features

πŸ’³ Multi-Account Management

  • Create and manage multiple merchant payment accounts
  • Secure wallet integration with Sui dApp Kit
  • Account recovery and backup address functionality
  • Real-time balance tracking for SUI and USDC

πŸ“± QR Code Integration

  • Generate QR codes for payment requests
  • Mobile-optimized QR code scanner
  • Instant payment processing via QR scanning
  • Cross-platform compatibility (iOS/Android)

πŸ’° Payment Processing

  • Issue payment requests with custom descriptions
  • Support for USDC and SUI tokens
  • Optional tip functionality
  • Real-time payment status tracking
  • Automatic payment expiration handling

πŸ”„ Transaction Management

  • View pending and completed payments
  • Withdraw funds to external addresses
  • Delete expired payment requests
  • Comprehensive transaction history

πŸ›‘οΈ Security & Recovery

  • Social recovery options to eliminate single points of failure
  • Backup address configuration for account recovery
  • Multi-signature support
  • Secure intent-based transactions
  • Dependency version management

🎨 Modern UI/UX

  • Dark theme optimized interface
  • Responsive design for all devices
  • Smooth animations and transitions
  • Intuitive navigation and user flows

πŸ—οΈ Architecture

Drift is built using a modern tech stack optimized for blockchain applications:

  • Frontend: Next.js 15 with TypeScript and Tailwind CSS
  • Blockchain: Sui blockchain integration via Sui dApp Kit
  • SDK: Account.tech Payment SDK for secure transaction handling
  • State Management: Zustand for efficient state management
  • UI Components: Radix UI primitives with custom styling
  • Mobile Wallet: Optimized for Nightly app integration

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm
  • A Sui wallet (Nightly app recommended for mobile, Sui Wallet for desktop)

Installation

  1. Clone the repository

    git clone <repository-url>
    cd drift-payments
  2. Install dependencies

    pnpm install
    # or
    npm install
  3. Set up environment variables

    cp .env.example .env.local

    Configure your environment variables as needed.

  4. Run the development server

    pnpm dev
    # or
    npm run dev
  5. Open your browser Navigate to http://localhost:3000

Building for Production

pnpm build
pnpm start

Supported Tokens

  • SUI: Native Sui token for gas fees
  • USDC: Primary payment token

πŸ“š SDK Integration

Drift leverages the Account.tech SDK for secure payment processing:

import { PaymentClient } from "@account.tech/payment";

// Initialize payment client
const client = await PaymentClient.init(NETWORK_TYPE, userAddress, paymentAccountId);

// Create payment request
await client.issuePayment(transaction, description, coinType, amount);

// Process payment
await client.makePayment(transaction, intentId, tipAmount);

πŸ› οΈ Development

Project Structure

src/
β”œβ”€β”€ app/                # Next.js app router pages
β”‚   β”œβ”€β”€ merchant/       # Merchant account management
β”‚   β”œβ”€β”€ pay/            # Payment processing
β”‚   β”œβ”€β”€ withdraw/       # Withdrawal functionality
β”‚   └── deposit/        # Deposit functionality
β”œβ”€β”€ components/         # Reusable UI components
β”œβ”€β”€ hooks/              # Custom React hooks
β”œβ”€β”€ store/              # Zustand state management
β”œβ”€β”€ utils/              # Utility functions
β”œβ”€β”€ types/              # TypeScript type definitions
└── constants/          # App constants

Available Scripts

pnpm dev          # Start development server
pnpm build        # Build for production
pnpm start        # Start production server
pnpm lint         # Run ESLint

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments


Built with 🩡 on Sui blockchain

About

Simplify payments with Drift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors