What is DolphinPay? π
DolphinPay is a production-ready decentralized payment infrastructure built on the Sui blockchain, providing comprehensive payment solutions for Web3 applications.
π Overviewβ
DolphinPay enables seamless cryptocurrency payments with enterprise-grade features:
- β One-time Payment Processing - Simple payment creation and execution
- β Merchant Management - Configurable fees, multi-currency support
- β Multi-currency Support - Batch payments & token operations
- β Fee Management - Platform fees + custom merchant fees
- β TypeScript SDK - Complete client library with comprehensive tests
- β Next.js Frontend - Modern, responsive UI with wallet integration
- π Subscription & Recurring Payments (planned)
- π Refund & Dispute Management (planned)
- π Risk Control System (planned)
ποΈ Architectureβ
DolphinPay is built with a modular architecture that ensures scalability, security, and developer experience:
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Frontend β β SDK β β Smart Contracts β
β (Next.js) βββββΊβ (TypeScript) βββββΊβ (Move) β
β β β β β β
β - React UI β β - Type Safety β β - Payment Logic β
β - Wallet Connectβ β - Transaction β β - Merchant Mgmt β
β - Fee Calculatorβ β Building β β - Fee Calculationβ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
β
βββββββββββββββββββ
β Sui Blockchain β
β β
β - High Throughputβ
β - Parallel Exec β
β - Low Latency β
βββββββββββββββββββ
π Key Featuresβ
For Merchantsβ
- Easy Integration: Simple SDK integration with just a few lines of code
- Multi-Currency: Accept payments in any Sui ecosystem token
- Custom Fees: Configure your own merchant fees on top of platform fees
- Real-time Analytics: Track payments, volume, and merchant performance
- Webhook Support: Receive instant notifications for payment events
For Developersβ
- TypeScript SDK: Full type safety and excellent developer experience
- Dry Run Testing: Test transactions without spending gas
- Comprehensive Testing: 100+ integration tests covering all functionality
- Multiple Client Libraries: React, Vue, and mobile SDKs available
- Extensive Documentation: Complete guides and API references
For Usersβ
- Wallet Integration: Support for all major Sui wallets
- One-Click Payments: Seamless payment experience
- Transaction Transparency: Full visibility into fees and transaction status
- Multi-Device Support: Works on desktop, tablet, and mobile
π Quick Startβ
1. Install the SDKβ
npm install @dolphinpay/sdk
2. Initialize Clientβ
import { createClient } from "@dolphinpay/sdk"
const client = createClient({
packageId:
"0x9c7ca262d020b005e0e6b6a5d083b329d58716e0d80c07b46804324074468f9c",
network: "testnet",
})
3. Create a Paymentβ
import { suiToMist } from "@dolphinpay/sdk"
const payment = await client.payment.buildCreatePayment({
merchant: "0xmerchant_address",
amount: suiToMist(10), // 10 SUI
currency: "SUI",
description: "Premium subscription",
expirySeconds: 3600, // 1 hour
})
// Execute the payment
await wallet.signAndExecuteTransactionBlock({
transactionBlock: payment,
})
π Live Deploymentβ
Testnet Package ID:
0x9c7ca262d020b005e0e6b6a5d083b329d58716e0d80c07b46804324074468f9c
Network: Sui Testnet Explorer: View on SuiVision
π οΈ Tech Stackβ
- Blockchain: Sui Network
- Smart Contracts: Move Language
- SDK: TypeScript with full type definitions
- Frontend: Next.js 15 with App Router
- Styling: Tailwind CSS
- Wallet Integration: @mysten/dapp-kit
- State Management: React Query
- Testing: Comprehensive test suite with 100+ tests
π Documentation Structureβ
This documentation is organized to help different audiences:
ποΈ Smart Contractsβ
- Core payment and merchant modules
- Multi-currency and batch payment systems
- Advanced features (subscriptions, DeFi integration, refunds)
- Security and testing
π§ SDK Integrationβ
- TypeScript SDK setup and usage
- React, Vue, and mobile integrations
- API references and examples
- Testing and development tools
π» Frontend Applicationβ
- Next.js application architecture
- UI components and design system
- Deployment and configuration
- Integration examples
π¨βπΌ Merchant Integrationβ
- Merchant registration and setup
- Payment processing workflows
- Analytics and reporting
- Best practices and security
π€ Contributingβ
DolphinPay is an open-source project. We welcome contributions from the community:
- Code Contributions: Submit pull requests for bug fixes and new features
- Documentation: Help improve our guides and examples
- Testing: Report issues and help expand test coverage
- Community: Join discussions and help other developers
π Licenseβ
DolphinPay is released under the MIT License.
π Linksβ
- GitHub Repository: https://github.com/dolphinslab/dolphin-pay
- Sui Documentation: https://docs.sui.io
- Sui Explorer: https://testnet.suivision.xyz/
- TypeScript SDK: https://www.typescriptlang.org/
- Next.js: https://nextjs.org
Ready to build the future of Web3 payments? Let's dive deeper into the documentation!