This guide will help you get started with the TSP Payment Gateway project, whether you're a founder, developer, or business analyst.
- README.md (this repo) - Project overview
- knowledge-base/TSP_DEFINITION.md - What is a TSP?
- docs/ROADMAP.md - 12-month plan
- What is a Technical Service Provider (TSP)?
- Why is TSP better than getting your own license?
- What's the 12-month roadmap?
Your Path:
- Read:
docs/ROADMAP.md - Read:
docs/FINANCIAL.md - Read:
docs/REGULATORY.md - Action: Start customer interviews
- Use:
templates/CUSTOMER_INTERVIEW_GUIDE.md
Time Commitment: 40-60 hours/week
Key Focus: Customer validation, fundraising, team building
Your Path:
- Read:
docs/TECHNICAL.md - Read:
knowledge-base/ARCHITECTURE_PATTERNS.md - Study:
examples/stripe-connect/ - Study:
examples/paypal-commerce/ - Action: Set up development environment
Time Commitment: 40-60 hours/week
Key Focus: Architecture, API design, integrations
Your Path:
- Read:
docs/REGULATORY.md - Read:
docs/COMPLIANCE.md - Read:
knowledge-base/PSD2_FRAMEWORK.md - Use:
templates/COMPLIANCE_CHECKLIST.md - Action: Create compliance procedures
Time Commitment: 20-40 hours/week
Key Focus: Regulatory compliance, procedures, audits
Your Path:
- Read:
docs/FINANCIAL.md - Read:
knowledge-base/COST_MODELS.md - Read:
docs/OPERATIONAL.md - Use:
templates/PITCH_DECK_OUTLINE.md - Action: Build financial model
Time Commitment: 30-50 hours/week
Key Focus: Financial modeling, market analysis, GTM
# Clone the repository
git clone https://github.com/your-org/tsp-payment-gateway-repo.git
cd tsp-payment-gateway-repo
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your configuration
# Run tests
pytest
# Start development server
python -m flask run# Clone the repository
git clone https://github.com/your-org/tsp-payment-gateway-repo.git
# Open in your editor
code tsp-payment-gateway-repo/
# Start reading documentation
# Begin with: README.md → docs/ROADMAP.md → your-role-specific docs- REGULATORY.md - EU regulations and licensing
- FINANCIAL.md - Cost breakdown and revenue models
- TECHNICAL.md - Architecture and API design
- OPERATIONAL.md - Onboarding, settlement, support
- COMPLIANCE.md - AML/KYC, GDPR, PCI DSS
- ROADMAP.md - 12-month execution plan
- TSP_DEFINITION.md - What is a TSP?
- PSD2_FRAMEWORK.md - Payment Services Directive 2
- LICENSING_OPTIONS.md - TSP vs PSP vs Payment Agent
- COST_MODELS.md - Detailed cost analysis
- ARCHITECTURE_PATTERNS.md - Technical design patterns
- INTEGRATION_GUIDES.md - Provider integration
- stripe-connect/ - Stripe Connect implementation
- paypal-commerce/ - PayPal Commerce Platform
- database/ - Database schema
- LEGAL_TEMPLATES.md - Legal documents
- PITCH_DECK_OUTLINE.md - Investor pitch
- CUSTOMER_INTERVIEW_GUIDE.md - Interview framework
- COMPLIANCE_CHECKLIST.md - Pre-launch checklist
- Install GitHub Copilot extension
- Sign in with GitHub account
- Authorize the extension
Example 1: Understanding TSP
"Based on knowledge-base/TSP_DEFINITION.md, what are the three criteria for TSP classification?"
Example 2: Code Generation
"Using examples/stripe-connect/oauth-flow.py as reference, generate the PayPal equivalent"
Example 3: Architecture Decisions
"Based on knowledge-base/ARCHITECTURE_PATTERNS.md, what's the best pattern for handling payment reconciliation?"
Example 4: Implementation Tasks
"Implement the merchant onboarding flow based on docs/OPERATIONAL.md and examples/stripe-connect/"
Example 5: Compliance Tasks
"Create an AML monitoring system based on docs/COMPLIANCE.md"
- Read README.md
- Read knowledge-base/TSP_DEFINITION.md
- Read docs/ROADMAP.md
- Understand the 12-month plan
- Read role-specific documentation
- Identify key responsibilities
- List questions and gaps
- Read 2-3 detailed documents
- Study relevant code examples
- Make notes on implementation
- Create your personal roadmap
- Identify first tasks
- Set up development environment (if applicable)
- Start your first task
- Use Copilot for assistance
- Document learnings
A Technical Service Provider (TSP) is a business that provides purely technical services without handling money or requiring a banking license. Under PSD2, TSPs are exempt from licensing.
Key Requirements:
- Never possess or control funds
- Provide only technical services
- No access to payment accounts
Advantages:
- €0 capital required
- 2-4 months to market
- Simple compliance
See: knowledge-base/TSP_DEFINITION.md
The platform uses a payment orchestration architecture:
- Merchant connects Stripe/PayPal account via OAuth
- Platform routes payments through provider's infrastructure
- Platform automatically receives application fees
- No funds touch platform's account
See: docs/TECHNICAL.md
The platform operates under PSD2 with upcoming PSR changes.
Key Articles:
- Article 5(1)(d) - TSP exemption
- Article 12 - Capital requirements
- Article 97 - Strong Customer Authentication
See: docs/REGULATORY.md
Choose one or combine:
- Percentage Markup: 0.2% - 0.5% on top of provider fees
- Fixed Per-Transaction: €0.10 - €0.50 per transaction
- Hybrid SaaS: Monthly subscription + per-transaction fee
- Premium Features: €499-€2,999/month for advanced features
See: docs/FINANCIAL.md
A: 12 months from foundation to fully operational payment gateway generating €50k-€100k/month.
A: €140,000 - €230,000 total. Start with €15k-€40k for MVP.
A: No, as a TSP you don't need a license. You operate under your payment provider's license.
A: 2-4 months for TSP setup (no formal approval needed). Compare to 9-15 months for PI license.
A: Yes, start as solo founder. Hire team as you grow.
See: docs/REGULATORY.md and docs/FINANCIAL.md for more details.
- Read documentation for your role
- Understand the TSP model
- Review the 12-month roadmap
- Set up your development environment (if applicable)
- Deep dive into role-specific documentation
- Study relevant code examples
- Ask Copilot questions about implementation
- Create your personal action plan
- Start your first task
- Use Copilot to generate solutions
- Document learnings and decisions
- Review progress against roadmap
1. Provide Context
"Based on the architecture in docs/TECHNICAL.md and examples/stripe-connect/,
how should I implement the PayPal integration?"
2. Reference Specific Files
"Using the database schema in examples/database/schema.sql,
generate the migration for adding transaction reconciliation fields"
3. Ask for Specific Formats
"Create a Python class for merchant onboarding following the pattern in
examples/stripe-connect/oauth-flow.py"
4. Request Explanations
"Explain the payment reconciliation algorithm described in docs/OPERATIONAL.md"
5. Generate Tests
"Generate unit tests for the webhook handler in examples/stripe-connect/webhook-handler.py"
docs/ROADMAP.md- 12-month plandocs/REGULATORY.md- Regulatory requirementsdocs/TECHNICAL.md- Technical architecturedocs/FINANCIAL.md- Financial modelsdocs/OPERATIONAL.md- Operational proceduresdocs/COMPLIANCE.md- Compliance requirements
knowledge-base/TSP_DEFINITION.md- TSP definitionknowledge-base/PSD2_FRAMEWORK.md- PSD2 detailsknowledge-base/ARCHITECTURE_PATTERNS.md- Design patternsknowledge-base/INTEGRATION_GUIDES.md- Integration procedures
examples/stripe-connect/- Stripe implementationexamples/paypal-commerce/- PayPal implementationexamples/database/- Database schema
templates/COMPLIANCE_CHECKLIST.md- Pre-launch checklisttemplates/CUSTOMER_INTERVIEW_GUIDE.md- Interview frameworktemplates/PITCH_DECK_OUTLINE.md- Pitch structuretemplates/LEGAL_TEMPLATES.md- Legal documents
- Check the relevant documentation file
- Search the knowledge base
- Review code examples
- Ask GitHub Copilot
- Create an issue in the repository
- Document the problem
- Create a GitHub issue
- Propose a solution
- Submit a pull request
| Resource | Link |
|---|---|
| Project Overview | README.md |
| 12-Month Roadmap | docs/ROADMAP.md |
| TSP Definition | knowledge-base/TSP_DEFINITION.md |
| Technical Architecture | docs/TECHNICAL.md |
| Financial Models | docs/FINANCIAL.md |
| Regulatory Framework | docs/REGULATORY.md |
| Code Examples | examples/ |
| Templates | templates/ |
You now have everything you need to build a payment gateway. Start with your role-specific documentation and use GitHub Copilot to generate end-to-end solutions.
Let's build something great! 🚀
Last Updated: June 2026
Version: 1.0